Package org.bukkit.inventory
Interface BlockInventoryHolder
- All Superinterfaces:
InventoryHolder
- All Known Subinterfaces:
Barrel
,BlastFurnace
,BrewingStand
,Chest
,ChiseledBookshelf
,Container
,Crafter
,DecoratedPot
,Dispenser
,Dropper
,Furnace
,Hopper
,Jukebox
,Lectern
,ShulkerBox
,Smoker
,TileStateInventoryHolder
Represents a block inventory holder - either a BlockState, or a regular
Block.
-
Method Summary
Methods inherited from interface org.bukkit.inventory.InventoryHolder
getInventory
-
Method Details
-
getBlock
Gets the block associated with this holder.- Returns:
- the block associated with this holder
- Throws:
IllegalStateException
- if the holder is a block state and is not placed
-