diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftChest.java b/src/main/java/org/bukkit/craftbukkit/block/CraftChest.java index face2c8f38..226be4f072 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftChest.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftChest.java @@ -22,6 +22,10 @@ public class CraftChest extends CraftBlockState implements Chest { chest = (TileEntityChest) world.getTileEntityAt(getX(), getY(), getZ()); } + public Inventory getBlockInventory() { + return new CraftInventory(chest); + } + public Inventory getInventory() { int x = getX(); int y = getY();