类 Leaves

所有已实现的接口:
Cloneable

public class Leaves extends Wood
Represents the different types of leaf block that may be permanent or can decay when too far from a log.
另请参阅:
  • 字段详细资料

    • 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

      @Deprecated public Leaves(int type)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
    • 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(int type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
      data - the raw data value
    • Leaves

      @Deprecated public Leaves(Material type, byte data)
      已过时。
      不安全的参数
      参数:
      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