程序包 org.bukkit.block

接口 Crafter

所有超级接口:
BlockInventoryHolder, BlockState, Container, InventoryHolder, Lockable, Lootable, Metadatable, Nameable, PersistentDataHolder, TileState

@Experimental public interface Crafter extends Container, Lootable
代表合成器的捕获状态.
  • 方法详细资料

    • getCraftingTicks

      int getCraftingTicks()
      获取此方块将保持在合成状态的剩余刻数.

      原文: Gets the number of ticks which this block will remain in the crafting state for.

      返回:
      剩余刻数
      另请参阅:
    • setCraftingTicks

      void setCraftingTicks(int ticks)
      设置此方块将保持在合成状态的剩余刻数.

      原文: Sets the number of ticks which this block will remain in the crafting state for.

      参数:
      ticks - 剩余刻数
      另请参阅:
    • isSlotDisabled

      boolean isSlotDisabled(int slot)
      获取指定索引处的槽位是否被禁用, 不会将物品放入其中.

      原文: Gets whether the slot at the specified index is disabled and will not have items placed in it.

      参数:
      slot - 槽位索引
      返回:
      禁用状态
    • setSlotDisabled

      void setSlotDisabled(int slot, boolean disabled)
      设置指定索引处的槽位是否被禁用, 不会将物品放入其中.

      原文: Sets whether the slot at the specified index is disabled and will not have items placed in it.

      参数:
      slot - 槽位索引
      disabled - 禁用状态
    • isTriggered

      boolean isTriggered()
      获取此合成器是否被激活.

      原文: Gets whether this Crafter is powered.

      返回:
      激活状态
    • setTriggered

      void setTriggered(boolean triggered)
      设置此合成器是否被激活.

      原文: Sets whether this Crafter is powered.

      参数:
      triggered - 激活状态