接口 Crafter

所有超级接口:
BlockData, Cloneable

public interface Crafter extends BlockData
'orientation' 是方块的朝向方向.
类似于 Powerable,'triggered' 表示发射器当前是否被激活.
'crafting' 表示合成器的嘴是否张开且顶部是否发光.
  • 方法详细资料

    • isCrafting

      boolean isCrafting()
      获取 'crafting' 属性的值.

      原文: Gets the value of the 'crafting' property.

      返回:
      'crafting' 的值
    • setCrafting

      void setCrafting(boolean crafting)
      设置 'crafting' 属性的值.

      原文: Sets the value of the 'crafting' property.

      参数:
      crafting - 新的 'crafting' 值
    • isTriggered

      boolean isTriggered()
      获取 'triggered' 属性的值.

      原文: Gets the value of the 'triggered' property.

      返回:
      'triggered' 的值
    • setTriggered

      void setTriggered(boolean triggered)
      设置 'triggered' 属性的值.

      原文: Sets the value of the 'triggered' property.

      参数:
      triggered - 新的 'triggered' 值
    • getOrientation

      获取 'orientation' 属性的值.

      原文: Gets the value of the 'orientation' property.

      返回:
      'orientation' 的值
    • setOrientation

      void setOrientation(@NotNull @NotNull Crafter.Orientation orientation)
      设置 'orientation' 属性的值.

      原文: Sets the value of the 'orientation' property.

      参数:
      orientation - 新的 'orientation' 值