程序包 org.bukkit.block

接口 Furnace

所有超级接口:
BlockState, Container, InventoryHolder, Lockable, Metadatable, Nameable

public interface Furnace extends Container, Nameable
代表一个熔炉(快照).
  • 方法详细资料

    • getBurnTime

      short getBurnTime()
      获取燃烧时间.

      原文: Get burn time.

      返回:
      燃烧时间
    • setBurnTime

      void setBurnTime(short burnTime)
      设置燃烧时间.

      原文: Set burn time.

      参数:
      burnTime - 燃烧时间
    • getCookTime

      short getCookTime()
      获取烹饪时间.

      原文: Get cook time.

      返回:
      烹饪时间
    • setCookTime

      void setCookTime(short cookTime)
      设置烹饪时间.

      原文: Set cook time.

      参数:
      cookTime - 烹饪时间
    • getInventory

      FurnaceInventory getInventory()
      从接口复制的说明: Container
      Gets the inventory of the block represented by this block state.

      If the block was changed to a different type in the meantime, the returned inventory might no longer be valid.

      If this block state is not placed this will return the captured inventory snapshot instead.

      指定者:
      getInventory 在接口中 Container
      指定者:
      getInventory 在接口中 InventoryHolder
      返回:
      the inventory
    • getSnapshotInventory

      FurnaceInventory getSnapshotInventory()
      从接口复制的说明: Container
      Gets the captured inventory snapshot of this container.

      The returned inventory is not linked to any block. Any modifications to the returned inventory will not be applied to the block represented by this block state up until BlockState.update(boolean, boolean) has been called.

      指定者:
      getSnapshotInventory 在接口中 Container
      返回:
      the captured inventory snapshot