类 Sapling

所有已实现的接口:
Cloneable

@Deprecated(since="1.14.1") public class Sapling extends Wood
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表不同类型的朝向特定方向的树苗方块。
另请参阅:
  • 构造器详细资料

    • Sapling

      public Sapling()
      已过时。
      构造一个树苗。

      原文:Constructs a sapling.

    • Sapling

      public Sapling(TreeSpecies species)
      已过时。
      构造一个给定树种的树苗。
      参数:
      species - 树苗的树种

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

    • Sapling

      public Sapling(TreeSpecies species, boolean isInstantGrowable)
      已过时。
      构造一个给定树种的树苗,并指定其是否可以立即生长。
      参数:
      species - 树苗方块的树种
      isInstantGrowable - 如果树苗应在下次被骨粉催熟时生长则为 true

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

    • Sapling

      public Sapling(Material type)
      已过时。
      构造一个给定类型的树苗。
      参数:
      type - 树苗方块的类型

      原文:Constructs a sapling of the given type.

    • Sapling

      public Sapling(Material type, TreeSpecies species)
      已过时。
      构造一个给定类型和树种的树苗。
      参数:
      type - 树苗的类型
      species - 树苗的树种

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

    • Sapling

      public Sapling(Material type, TreeSpecies species, boolean isInstantGrowable)
      已过时。
      构造一个给定类型和树种的树苗,并指定其是否可以立即生长。
      参数:
      type - 树苗的类型
      species - 树苗的树种
      isInstantGrowable - 如果树苗应在下次被骨粉催熟时生长则为 true

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

    • Sapling

      @Deprecated(since="1.9") public Sapling(Material type, byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      type - 物品类型
      data - 原始数据值
  • 方法详细资料

    • isInstantGrowable

      public boolean isInstantGrowable()
      已过时。
      检查树苗是否会在下次被骨粉催熟时生长。
      返回:
      如果树苗会在下次被骨粉催熟时生长则返回 true

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

    • setIsInstantGrowable

      public void setIsInstantGrowable(boolean isInstantGrowable)
      已过时。
      设置此树苗是否会在下次被骨粉催熟时生长。
      参数:
      isInstantGrowable - 如果树苗应在下次被骨粉催熟时生长则为 true

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

    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 Wood
    • clone

      public Sapling clone()
      已过时。
      覆盖:
      clone 在类中 Wood