程序包 org.bukkit.material

# 类 Leaves

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Leaves

所有已实现的接口:
  `Cloneable`

@Deprecated public class Leaves extends Wood
已过时。
all usage of MaterialData is deprecated and subject to removal. Use `BlockData`.
Represents the different types of leaf block that may be permanent or can decay when too far from a log.

另请参阅:
  - `Material.LEGACY_LEAVES`
  - `Material.LEGACY_LEAVES_2`

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `protected static final boolean`
  `DEFAULT_DECAYABLE`
  已过时。
  `protected static final Material`
  `DEFAULT_TYPE`
  已过时。

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

  `DEFAULT_SPECIES`

- ## 构造器概要

  构造器
  构造器
  说明
  `Leaves()`
  已过时。
  Constructs a leaf block.
  `Leaves(Material type)`
  已过时。
  Constructs a leaf block of the given type.
  `Leaves(Material type, byte data)`
  已过时。
  Magic value
  `Leaves(Material type, TreeSpecies species)`
  已过时。
  Constructs a leaf block of the given type and tree species.
  `Leaves(Material type, TreeSpecies species, boolean isDecayable)`
  已过时。
  Constructs a leaf block of the given type and tree species and flag for whether this leaf block will disappear when too far from a log.
  `Leaves(TreeSpecies species)`
  已过时。
  Constructs a leaf block of the given tree species.
  `Leaves(TreeSpecies species, boolean isDecayable)`
  已过时。
  Constructs a leaf block of the given tree species and flag for whether this leaf block will disappear when too far from a log.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `Leaves`
  `clone()`
  已过时。
  `boolean`
  `isDecayable()`
  已过时。
  Checks if this leaf block is permanent or can decay when too far from a log
  `boolean`
  `isDecaying()`
  已过时。
  Checks if this leaf block is in the process of decaying
  `void`
  `setDecayable(boolean isDecayable)`
  已过时。
  Set whether this leaf block will disappear when too far from a log
  `void`
  `setDecaying(boolean isDecaying)`
  已过时。
  Set whether this leaf block is in the process of decaying
  `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`

- ## 字段详细资料

  - ### DEFAULT_TYPE

    protected static final Material DEFAULT_TYPE
    已过时。

  - ### DEFAULT_DECAYABLE

    protected static final boolean DEFAULT_DECAYABLE
    已过时。
    另请参阅:
      - 常量字段值

- ## 构造器详细资料

  - ### Leaves

    public Leaves()
    已过时。
    Constructs a leaf block.

  - ### Leaves

    public Leaves(TreeSpecies species)
    已过时。
    Constructs a leaf block of the given tree species.
    参数:
      `species` - the species of the wood block

  - ### Leaves

    public Leaves(TreeSpecies species, boolean isDecayable)
    已过时。
    Constructs a leaf block of the given tree species and flag for whether this leaf block will disappear when too far from a log.
    参数:
      `species` - the species of the wood block
      `isDecayable` - whether the block is permanent or can disappear

  - ### Leaves

    public Leaves(Material type)
    已过时。
    Constructs a leaf block of the given type.
    参数:
      `type` - the type of leaf block

  - ### Leaves

    public Leaves(Material type, TreeSpecies species)
    已过时。
    Constructs a leaf block of the given type and tree species.
    参数:
      `type` - the type of leaf block
      `species` - the species of the wood block

  - ### Leaves

    public Leaves(Material type, TreeSpecies species, boolean isDecayable)
    已过时。
    Constructs a leaf block of the given type and tree species and flag for whether this leaf block will disappear when too far from a log.
    参数:
      `type` - the type of leaf block
      `species` - the species of the wood block
      `isDecayable` - whether the block is permanent or can disappear

  - ### Leaves

    @Deprecated public Leaves(Material type, byte data)
    已过时。
    Magic value
    参数:
      `type` - the type
      `data` - the raw data value

- ## 方法详细资料

  - ### isDecaying

    public boolean isDecaying()
    已过时。
    Checks if this leaf block is in the process of decaying
    返回:
      true if the leaf block is in the process of decaying

  - ### setDecaying

    public void setDecaying(boolean isDecaying)
    已过时。
    Set whether this leaf block is in the process of decaying
    参数:
      `isDecaying` - whether the block is decaying or not

  - ### isDecayable

    public boolean isDecayable()
    已过时。
    Checks if this leaf block is permanent or can decay when too far from a log
    返回:
      true if the leaf block is permanent or can decay when too far from a log

  - ### setDecayable

    public void setDecayable(boolean isDecayable)
    已过时。
    Set whether this leaf block will disappear when too far from a log
    参数:
      `isDecayable` - whether the block is permanent or can disappear

  - ### toString

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

  - ### clone

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