类 Sapling

所有已实现的接口:
Cloneable

@Deprecated public class Sapling extends Wood
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents the different types of Tree block that face a direction.
另请参阅:
  • 构造器详细资料

    • Sapling

      public Sapling()
      已过时。
      Constructs a sapling.
    • Sapling

      public Sapling(TreeSpecies species)
      已过时。
      Constructs a sapling of the given tree species.
      参数:
      species - the species of the sapling
    • Sapling

      public Sapling(TreeSpecies species, boolean isInstantGrowable)
      已过时。
      Constructs a sapling of the given tree species and if is it instant growable
      参数:
      species - the species of the tree block
      isInstantGrowable - true if the Sapling should grow when next ticked with bonemeal
    • Sapling

      public Sapling(Material type)
      已过时。
      Constructs a sapling of the given type.
      参数:
      type - the type of tree block
    • Sapling

      public Sapling(Material type, TreeSpecies species)
      已过时。
      Constructs a sapling of the given type and tree species.
      参数:
      type - the type of sapling
      species - the species of the sapling
    • 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 - the type of sapling
      species - the species of the sapling
      isInstantGrowable - true if the Sapling should grow when next ticked with bonemeal
    • Sapling

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

    • isInstantGrowable

      public boolean isInstantGrowable()
      已过时。
      Checks if the Sapling would grow when next ticked with bonemeal
      返回:
      true 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 - true if the Sapling should grow when next ticked with bonemeal
    • toString

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

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