[Bleeding] Add Chest.getBlockInventory() for convenience; this always returns a single chest inventory. Addresses BUKKIT-1247

This commit is contained in:
Celtic Minstrel 2012-03-19 15:02:10 -04:00 committed by EvilSeph
parent 3da0557aa0
commit 132ee04542

View File

@ -1,6 +1,16 @@
package org.bukkit.block; package org.bukkit.block;
import org.bukkit.inventory.Inventory;
/** /**
* Represents a chest. * 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();
}