summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/block/Chest.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/block/Chest.java b/src/main/java/org/bukkit/block/Chest.java
index f33cce6f..2d940e56 100644
--- a/src/main/java/org/bukkit/block/Chest.java
+++ b/src/main/java/org/bukkit/block/Chest.java
@@ -1,6 +1,16 @@
package org.bukkit.block;
+import org.bukkit.inventory.Inventory;
+
/**
* Represents a chest.
*/
-public interface Chest extends BlockState, ContainerBlock {}
+public interface Chest extends BlockState, ContainerBlock {
+ /**
+ * Returns the chest's inventory. If this is a double chest, it returns just
+ * the portion of the inventory linked to this half of the chest.
+ *
+ * @return The inventory.
+ */
+ Inventory getBlockInventory();
+}