接口 BlockInventoryHolder
- 所有超级接口:
InventoryHolder
- 所有已知子接口:
Barrel,BlastFurnace,BrewingStand,Chest,ChiseledBookshelf,Container,Crafter,DecoratedPot,Dispenser,Dropper,Furnace,Hopper,Jukebox,Lectern,ShulkerBox,Smoker
Represents a block inventory holder - either a BlockState, or a regular
Block.
-
方法概要
从接口继承的方法 org.bukkit.inventory.InventoryHolder
getInventory
-
方法详细资料
-
getBlock
Gets the block associated with this holder.- 返回:
- the block associated with this holder
- 抛出:
IllegalStateException- if the holder is a block state and is not placed
-