类 Sapling

所有已实现的接口:
Cloneable

public class Sapling extends Wood
代表不同种类的树苗.
另请参阅:
  • 构造器详细资料

    • Sapling

      public Sapling()
      构造本类.

      原文:Constructs a sapling.

    • Sapling

      public Sapling(TreeSpecies species)
      以给定的树木种类构造本类.

      原文:Constructs a sapling of the given tree species.

      参数:
      species - 树苗的树木种类
    • Sapling

      public Sapling(TreeSpecies species, boolean isInstantGrowable)
      以给定的树木种类和是否顷刻间长成构造本类.

      原文:Constructs a sapling of the given tree species and if is it instant growable

      参数:
      species - 木头的树木种类
      isInstantGrowable - true 如果树苗应该在用使用骨粉时瞬间长大
    • Sapling

      public Sapling(Material type)
      以给定的物品种类构造本类.

      原文:Constructs a sapling of the given type.

      参数:
      type - 木头的树木种类
    • Sapling

      public Sapling(Material type, TreeSpecies species)
      以给定的物品种类和树木种类构造本类.

      原文:Constructs a sapling of the given type and tree species.

      参数:
      type - 树苗的物品种类
      species - 树苗的树木种类
    • Sapling

      public Sapling(Material type, TreeSpecies species, boolean isInstantGrowable)
      以给定的物品种类和树木种类和是否瞬间长大构造本类.

      原文:Constructs a sapling of the given type and tree species and if is it instant growable

      参数:
      type - 树苗的物品种类
      species - 树苗的树木种类
      isInstantGrowable - true 如果树苗应该在用使用骨粉时瞬间长大
    • Sapling

      @Deprecated public Sapling(int type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
      data - the raw data value
    • Sapling

      @Deprecated public Sapling(Material type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the type
      data - the raw data value
  • 方法详细资料

    • isInstantGrowable

      public boolean isInstantGrowable()
      检测这个树苗是否应该在用使用骨粉时瞬间长大(可以长成树).

      原文:Checks if the Sapling would grow when next ticked with bonemeal

      返回:
      这个树苗是否应该在用使用骨粉时瞬间长大
    • setIsInstantGrowable

      public void setIsInstantGrowable(boolean isInstantGrowable)
      设置这个树苗是否应该在用使用骨粉时瞬间长大(可以长成树).

      原文:Set whether this sapling will grow when next ticked with bonemeal

      参数:
      isInstantGrowable - 这个树苗是否应该在用使用骨粉时瞬间长大
    • toString

      public String toString()
      覆盖:
      toString 在类中 Wood
    • clone

      public Sapling clone()
      覆盖:
      clone 在类中 Wood