接口 TurtleEgg

所有超级接口:
BlockData, Cloneable

public interface TurtleEgg extends BlockData
'hatch' 值为这些海龟蛋中孵化出海龟的数量.
'eggs' 值为该方块中出现的海龟蛋的数量.
  • 方法详细资料

    • getEggs

      int getEggs()
      获取 'eggs' 属性的值.

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

      返回:
      属性 'eggs' 的值
    • setEggs

      void setEggs(int eggs)
      设置 'eggs' 属性的值.

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

      参数:
      eggs - 新的 'eggs' 属性值
    • getMinimumEggs

      int getMinimumEggs()
      获取 'eggs' 属性所能允许的最小值.

      原文: Gets the minimum allowed value of the 'eggs' property.

      返回:
      最小 'eggs' 属性值
    • getMaximumEggs

      int getMaximumEggs()
      获取 'eggs' 属性所能允许的最大值.

      原文: Gets the maximum allowed value of the 'eggs' property.

      返回:
      最大 'eggs' 属性值
    • getHatch

      int getHatch()
      获取 'hatch' 属性的值.

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

      返回:
      属性 'hatch' 的值
    • setHatch

      void setHatch(int hatch)
      设置 'hatch' 属性的值.

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

      参数:
      hatch - 新的 'hatch' 属性值
    • getMaximumHatch

      int getMaximumHatch()
      获取 'hatch' 属性所能允许的最大值.

      原文: Gets the maximum allowed value of the 'hatch' property.

      返回:
      最大 'hatch' 属性值.