org.bukkit.block
Interface Chest

All Superinterfaces:
BlockState, ContainerBlock, InventoryHolder, Metadatable

public interface Chest
extends BlockState, ContainerBlock

Represents a chest.


Method Summary
 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, setData, setRawData, setType, setTypeId, update, update, update
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 
Methods inherited from interface org.bukkit.inventory.InventoryHolder
getInventory
 

Method Detail

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.


Copyright © 2013. All Rights Reserved.