接口 BlockInventoryHolder

所有超级接口:
InventoryHolder
所有已知子接口:
Barrel, BlastFurnace, BrewingStand, Chest, ChiseledBookshelf, Container, Dispenser, Dropper, Furnace, Hopper, Jukebox, Lectern, ShulkerBox, Smoker

public interface BlockInventoryHolder extends InventoryHolder
Represents a block inventory holder - either a BlockState, or a regular Block.
  • 方法详细资料

    • getBlock

      @NotNull @NotNull Block 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