程序包 org.bukkit.inventory

# 接口 BlockInventoryHolder

所有超级接口:
  `InventoryHolder`

所有已知子接口:
  `Barrel`, `BlastFurnace`, `BrewingStand`, `Chest`, `ChiseledBookshelf`, `Container`, `Crafter`, `DecoratedPot`, `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.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Block`
  `getBlock()`
  Gets the block associated with this holder.

  ### 从接口继承的方法 org.bukkit.inventory.InventoryHolder

  `getInventory`

- ## 方法详细资料

  - ### 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