Package org.bukkit.block
Interface Chest
- All Superinterfaces:
BlockState
,ContainerBlock
,InventoryHolder
,Metadatable
public interface Chest extends BlockState, ContainerBlock
Represents a chest.
-
Method Summary
Modifier and Type Method Description Inventory
getBlockInventory()
Returns the chest's inventory.Methods inherited from interface org.bukkit.block.BlockState
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Method Details
-
getBlockInventory
Inventory getBlockInventory()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.- Returns:
- The inventory.
-