类 Leaves

所有已实现的接口:
Cloneable

@Deprecated(since="1.14.1") public class Leaves extends Wood
已过时。
所有 MaterialData 的使用都已弃用并可能被移除。 使用 BlockData。
代表不同类型的树叶方块,这些方块可能是永久存在的,或者在距离原木太远时会腐烂。
另请参阅:
  • 字段详细资料

    • 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)
      已过时。
      构造指定树种的树叶方块。
      参数:
      species - 木方块的树种

      原文:Constructs a leaf block of the given tree species.

    • Leaves

      public Leaves(TreeSpecies species, boolean isDecayable)
      已过时。
      构造指定树种的树叶方块,并标记该树叶方块在距离原木太远时是否会消失。
      参数:
      species - 木方块的树种
      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

      public Leaves(Material type)
      已过时。
      构造指定类型的树叶方块。
      参数:
      type - 树叶方块的类型

      原文:Constructs a leaf block of the given type.

    • Leaves

      public Leaves(Material type, TreeSpecies species)
      已过时。
      构造指定类型和树种的树叶方块。
      参数:
      type - 树叶方块的类型
      species - 木方块的树种

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

    • Leaves

      public Leaves(Material type, TreeSpecies species, boolean isDecayable)
      已过时。
      构造指定类型和树种的树叶方块,并标记该树叶方块在距离原木太远时是否会消失。
      参数:
      type - 树叶方块的类型
      species - 木方块的树种
      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

      @Deprecated(since="1.6.2") public Leaves(Material type, byte data)
      已过时。
      魔法值
      参数:
      type - 类型
      data - 原始数据值
  • 方法详细资料

    • isDecaying

      public boolean isDecaying()
      已过时。
      检查此树叶方块是否正在腐烂
      返回:
      如果树叶方块正在腐烂则返回true

      原文:Checks if this leaf block is in the process of decaying

    • setDecaying

      public void setDecaying(boolean isDecaying)
      已过时。
      设置此树叶方块是否正在腐烂
      参数:
      isDecaying - 方块是否正在腐烂

      原文:Set whether this leaf block is in the process of decaying

    • isDecayable

      public boolean isDecayable()
      已过时。
      检查此树叶方块是永久存在的还是在距离原木太远时会腐烂
      返回:
      如果树叶方块是永久存在的或在距离原木太远时会腐烂则返回true

      原文:Checks if this leaf block is permanent or can decay when too far from a log

    • setDecayable

      public void setDecayable(boolean isDecayable)
      已过时。
      设置此树叶方块在距离原木太远时是否会消失
      参数:
      isDecayable - 方块是永久存在还是可以消失

      原文:Set whether this leaf block will disappear when too far from a log

    • toString

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

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