diff options
author | Celtic Minstrel <celtic.minstrel.ca@some.place> | 2012-03-19 15:02:10 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-20 19:49:40 -0400 |
commit | 132ee0454229477f2403d445758594c3566405bc (patch) | |
tree | 203cb60bd25090783affba8a40d110e990e2160c | |
parent | 3da0557aa01653b53870a119c138eeef4f18021b (diff) | |
download | bukkit-132ee0454229477f2403d445758594c3566405bc.tar bukkit-132ee0454229477f2403d445758594c3566405bc.tar.gz bukkit-132ee0454229477f2403d445758594c3566405bc.tar.lz bukkit-132ee0454229477f2403d445758594c3566405bc.tar.xz bukkit-132ee0454229477f2403d445758594c3566405bc.zip |
[Bleeding] Add Chest.getBlockInventory() for convenience; this always returns a single chest inventory. Addresses BUKKIT-1247
-rw-r--r-- | src/main/java/org/bukkit/block/Chest.java | 12 |
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(); +} |