程序包 org.bukkit.block

# 接口 ChiseledBookshelf

所有超级接口:
  `BlockInventoryHolder`, `BlockState`, `InventoryHolder`, `Metadatable`, `PersistentDataHolder`, `TileState`

public interface ChiseledBookshelf extends TileState, BlockInventoryHolder
Represents a captured state of a chiseled bookshelf.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull ChiseledBookshelfInventory`
  `getInventory()`
  获取该对象的用户界面项目.
  `int`
  `getLastInteractedSlot()`
  Gets the last interacted inventory slot.
  `int`
  `getSlot(@NotNull Vector position)`
  Gets the appropriate slot based on a vector relative to this block.
  Will return -1 if the given vector is not within the bounds of any slot.
  `@NotNull ChiseledBookshelfInventory`
  `getSnapshotInventory()`
  `void`
  `setLastInteractedSlot(int lastInteractedSlot)`
  Sets the last interacted inventory slot.

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

  `getBlock`

  ### 从接口继承的方法 org.bukkit.block.BlockState

  `copy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.block.TileState

  `getPersistentDataContainer`

- ## 方法详细资料

  - ### getLastInteractedSlot

    int getLastInteractedSlot()
    Gets the last interacted inventory slot.
    返回:
      the last interacted slot

  - ### setLastInteractedSlot

    void setLastInteractedSlot(int lastInteractedSlot)
    Sets the last interacted inventory slot.
    参数:
      `lastInteractedSlot` - the new last interacted slot

  - ### getInventory

    @NotNull @NotNull ChiseledBookshelfInventory getInventory()
    从接口复制的说明: `InventoryHolder`
    获取该对象的用户界面项目.

    原文:Get the object's inventory.

    指定者:
      `getInventory` 在接口中 `InventoryHolder`
    返回:
      inventory
    另请参阅:
      - `Container.getInventory()`

  - ### getSnapshotInventory

    @NotNull @NotNull ChiseledBookshelfInventory getSnapshotInventory()
    返回:
      snapshot inventory
    另请参阅:
      - `Container.getSnapshotInventory()`

  - ### getSlot

    int getSlot(@NotNull @NotNull Vector position)
    Gets the appropriate slot based on a vector relative to this block.
    Will return -1 if the given vector is not within the bounds of any slot.

    The supplied vector should only contain components with values between 0.0 and 1.0, inclusive.

    参数:
      `position` - a vector relative to this block
    返回:
      the slot under the given vector or -1