程序包 org.bukkit.block

# 接口 DecoratedPot

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

public interface DecoratedPot extends TileState, BlockInventoryHolder
Represents a captured state of a decorated pot.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static enum`
  `DecoratedPot.Side`
  A side on a decorated pot.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull DecoratedPotInventory`
  `getInventory()`
  获取该对象的用户界面项目.
  `@NotNull List<Material>`
  `getShards()`
  已过时。
  in favor of `getSherds()`
  `@NotNull Material`
  `getSherd(@NotNull DecoratedPot.Side side)`
  Get the sherd on the provided side.
  `@NotNull Map<DecoratedPot.Side,Material>`
  `getSherds()`
  Gets a Map of all sides on this decorated pot and the sherds on them.
  `@NotNull DecoratedPotInventory`
  `getSnapshotInventory()`
  `void`
  `setSherd(@NotNull DecoratedPot.Side side, @Nullable Material sherd)`
  Set the sherd on the provided side.

  ### 从接口继承的方法 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`

- ## 方法详细资料

  - ### setSherd

    void setSherd(@NotNull @NotNull DecoratedPot.Side side, @Nullable @Nullable Material sherd)
    Set the sherd on the provided side.
    参数:
      `side` - the side to set
      `sherd` - the sherd, or null to set a blank side.
    抛出:
      `IllegalArgumentException` - if the sherd is not either tagged by `Tag.ITEMS_DECORATED_POT_SHERDS`, `Material.BRICK`, or `null`

  - ### getSherd

    @NotNull @NotNull Material getSherd(@NotNull @NotNull DecoratedPot.Side side)
    Get the sherd on the provided side.
    参数:
      `side` - the side to get
    返回:
      the sherd on the side or `Material.BRICK` if it's blank

  - ### getSherds

    @NotNull @NotNull Map<DecoratedPot.Side,Material> getSherds()
    Gets a Map of all sides on this decorated pot and the sherds on them. If a side does not have a specific sherd on it, `Material.BRICK` will be the value of that side.
    返回:
      the sherds

  - ### getShards

    @Deprecated @NotNull @NotNull List<Material> getShards()
    已过时。
    in favor of `getSherds()`
    Gets the sherds on this decorated pot. For faces without a specific sherd, `Material.BRICK` is used in its place.
    返回:
      the sherds

  - ### getInventory

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

    原文:Get the object's inventory.

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

  - ### getSnapshotInventory

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