2015-05-25 18:37:24 +08:00
|
|
|
--- a/net/minecraft/server/InventoryEnderChest.java
|
|
|
|
+++ b/net/minecraft/server/InventoryEnderChest.java
|
2016-12-11 13:41:40 +08:00
|
|
|
@@ -1,11 +1,27 @@
|
2014-11-26 05:32:16 +08:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
2016-12-11 13:41:40 +08:00
|
|
|
+import org.bukkit.Location;
|
2016-11-17 09:41:03 +08:00
|
|
|
+import org.bukkit.inventory.InventoryHolder;
|
2014-11-26 05:32:16 +08:00
|
|
|
+
|
|
|
|
public class InventoryEnderChest extends InventorySubcontainer {
|
|
|
|
|
|
|
|
private TileEntityEnderChest a;
|
2016-11-17 09:41:03 +08:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ private final EntityHuman owner;
|
2014-11-26 05:32:16 +08:00
|
|
|
+
|
2016-11-17 09:41:03 +08:00
|
|
|
+ public InventoryHolder getBukkitOwner() {
|
|
|
|
+ return owner.getBukkitEntity();
|
2014-11-26 05:32:16 +08:00
|
|
|
+ }
|
2016-12-11 13:41:40 +08:00
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Location getLocation() {
|
|
|
|
+ return new Location(this.a.getWorld().getWorld(), this.a.getPosition().getX(), this.a.getPosition().getY(), this.a.getPosition().getZ());
|
|
|
|
+ }
|
2016-11-17 09:41:03 +08:00
|
|
|
|
|
|
|
- public InventoryEnderChest() {
|
|
|
|
+ public InventoryEnderChest(EntityHuman owner) {
|
2018-07-15 08:00:00 +08:00
|
|
|
super(new ChatMessage("container.enderchest", new Object[0]), 27);
|
2016-11-17 09:41:03 +08:00
|
|
|
+ this.owner = owner;
|
|
|
|
+ // CraftBukkit end
|
2015-02-27 06:41:06 +08:00
|
|
|
}
|
2016-11-17 09:41:03 +08:00
|
|
|
|
|
|
|
public void a(TileEntityEnderChest tileentityenderchest) {
|