2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/InventoryEnderChest.java
|
|
|
|
+++ b/net/minecraft/server/InventoryEnderChest.java
|
2016-11-17 02:41:03 +01:00
|
|
|
@@ -1,11 +1,21 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
2016-11-17 02:41:03 +01:00
|
|
|
+import org.bukkit.inventory.InventoryHolder;
|
2014-11-25 22:32:16 +01:00
|
|
|
+
|
|
|
|
public class InventoryEnderChest extends InventorySubcontainer {
|
|
|
|
|
|
|
|
private TileEntityEnderChest a;
|
2016-11-17 02:41:03 +01:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ private final EntityHuman owner;
|
2014-11-25 22:32:16 +01:00
|
|
|
+
|
2016-11-17 02:41:03 +01:00
|
|
|
+ public InventoryHolder getBukkitOwner() {
|
|
|
|
+ return owner.getBukkitEntity();
|
2014-11-25 22:32:16 +01:00
|
|
|
+ }
|
2016-11-17 02:41:03 +01:00
|
|
|
|
|
|
|
- public InventoryEnderChest() {
|
|
|
|
+ public InventoryEnderChest(EntityHuman owner) {
|
2014-11-25 22:32:16 +01:00
|
|
|
super("container.enderchest", false, 27);
|
2016-11-17 02:41:03 +01:00
|
|
|
+ this.owner = owner;
|
|
|
|
+ // CraftBukkit end
|
2015-02-26 23:41:06 +01:00
|
|
|
}
|
2016-11-17 02:41:03 +01:00
|
|
|
|
|
|
|
public void a(TileEntityEnderChest tileentityenderchest) {
|