程序包 org.bukkit.block

接口 Crafter

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

@Experimental public interface Crafter extends Container, Lootable
Represents a captured state of a crafter.
  • 方法详细资料

    • getCraftingTicks

      int getCraftingTicks()
      Gets the number of ticks which this block will remain in the crafting state for.
      返回:
      number of ticks remaining
      另请参阅:
    • setCraftingTicks

      void setCraftingTicks(int ticks)
      Sets the number of ticks which this block will remain in the crafting state for.
      参数:
      ticks - number of ticks remaining
      另请参阅:
    • isSlotDisabled

      boolean isSlotDisabled(int slot)
      Gets whether the slot at the specified index is disabled and will not have items placed in it.
      参数:
      slot - slot index
      返回:
      disabled status
    • 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 - slot index
      disabled - disabled status
    • isTriggered

      boolean isTriggered()
      Gets whether this Crafter is powered.
      返回:
      powered status
    • setTriggered

      void setTriggered(boolean triggered)
      Sets whether this Crafter is powered.
      参数:
      triggered - powered status