接口 CreakingHeart

所有超级接口:
BlockData, Cloneable, Orientable

@Experimental public interface CreakingHeart extends Orientable
'creaking_heart_state' 表示方块当前的运行阶段.
'natural' 表示这是否是自然生成的方块.
  • 方法详细资料

    • isActive

      @Deprecated(since="1.21.5") boolean isActive()
      已过时。
      获取 'active' 属性的值.

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

      返回:
      'active' 的值
    • setActive

      @Deprecated(since="1.21.5") void setActive(boolean active)
      设置 'active' 属性的值.

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

      参数:
      active - 新的 'active' 值
    • isNatural

      boolean isNatural()
      获取 'natural' 属性的值.

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

      返回:
      'natural' 的值
    • setNatural

      void setNatural(boolean natural)
      设置 'natural' 属性的值.

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

      参数:
      natural - 新的 'natural' 值
    • getCreakingHeartState

      @NotNull @NotNull CreakingHeart.State getCreakingHeartState()
      获取 'creaking_heart_state' 属性的值.

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

      返回:
      'creaking_heart_state' 的值
    • setCreakingHeartState

      void setCreakingHeartState(@NotNull @NotNull CreakingHeart.State state)
      设置 'creaking_heart_state' 属性的值.

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

      参数:
      state - 新的 'creaking_heart_state' 值