mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
26 lines
741 B
Diff
26 lines
741 B
Diff
--- a/net/minecraft/server/InventoryEnderChest.java
|
|
+++ b/net/minecraft/server/InventoryEnderChest.java
|
|
@@ -1,11 +1,21 @@
|
|
package net.minecraft.server;
|
|
|
|
+import org.bukkit.inventory.InventoryHolder;
|
|
+
|
|
public class InventoryEnderChest extends InventorySubcontainer {
|
|
|
|
private TileEntityEnderChest a;
|
|
+ // CraftBukkit start
|
|
+ private final EntityHuman owner;
|
|
+
|
|
+ public InventoryHolder getBukkitOwner() {
|
|
+ return owner.getBukkitEntity();
|
|
+ }
|
|
|
|
- public InventoryEnderChest() {
|
|
+ public InventoryEnderChest(EntityHuman owner) {
|
|
super("container.enderchest", false, 27);
|
|
+ this.owner = owner;
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
public void a(TileEntityEnderChest tileentityenderchest) {
|