程序包 org.bukkit.material

# 类 Sapling

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.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.

另请参阅:
  - `Material.LEGACY_SAPLING`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.material.Wood

  `DEFAULT_SPECIES, DEFAULT_TYPE`

- ## 构造器概要

  构造器
  构造器
  说明
  `Sapling()`
  已过时。
  Constructs a sapling.
  `Sapling(Material type)`
  已过时。
  Constructs a sapling of the given type.
  `Sapling(Material type, byte data)`
  已过时。
  Magic value
  `Sapling(Material type, TreeSpecies species)`
  已过时。
  Constructs a sapling of the given type and tree species.
  `Sapling(Material type, TreeSpecies species, boolean isInstantGrowable)`
  已过时。
  Constructs a sapling of the given type and tree species and if is it instant growable
  `Sapling(TreeSpecies species)`
  已过时。
  Constructs a sapling of the given tree species.
  `Sapling(TreeSpecies species, boolean isInstantGrowable)`
  已过时。
  Constructs a sapling of the given tree species and if is it instant growable

- ## 方法概要

  修饰符和类型
  方法
  说明
  `Sapling`
  `clone()`
  已过时。
  `boolean`
  `isInstantGrowable()`
  已过时。
  Checks if the Sapling would grow when next ticked with bonemeal
  `void`
  `setIsInstantGrowable(boolean isInstantGrowable)`
  已过时。
  Set whether this sapling will grow when next ticked with bonemeal
  `String`
  `toString()`
  已过时。

  ### 从类继承的方法 org.bukkit.material.Wood

  `getSpecies, setSpecies`

  ### 从类继承的方法 org.bukkit.material.MaterialData

  `equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack`

  ### 从类继承的方法 java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 构造器详细资料

  - ### 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`