类 Wood

所有已实现的接口:
Cloneable
直接已知子类:
Leaves, Sapling, Tree, WoodenStep

public class Wood extends MaterialData
代表不同种类的木头方块.
另请参阅:
  • 字段详细资料

    • DEFAULT_TYPE

      protected static final Material DEFAULT_TYPE
    • DEFAULT_SPECIES

      protected static final TreeSpecies DEFAULT_SPECIES
  • 构造器详细资料

    • Wood

      public Wood()
      构造本类.

      原文:Constructs a wood block.

    • Wood

      public Wood(TreeSpecies species)
      以给定的树木种类构造本类.

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

      参数:
      species - 木头的树木种类
    • Wood

      @Deprecated public Wood(int type)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
    • Wood

      public Wood(Material type)
      以给定的物品种类构造本类.

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

      参数:
      type - 木头的物品种类
    • Wood

      public Wood(Material type, TreeSpecies species)
      以给定的物品种类和树木种类构造本类.

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

      参数:
      type - 木头的物品种类
      species - 木头的树木种类
    • Wood

      @Deprecated public Wood(int type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
      data - the raw data value
    • Wood

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

    • getSpecies

      public TreeSpecies getSpecies()
      获取这个木头的树木种类.

      原文:Gets the current species of this wood block

      返回:
      木头的树木种类
    • setSpecies

      public void setSpecies(TreeSpecies species)
      设置木头的树木种类.

      原文:Sets the species of this wood block

      参数:
      species - 新种类
    • toString

      public String toString()
      覆盖:
      toString 在类中 MaterialData
    • clone

      public Wood clone()
      覆盖:
      clone 在类中 MaterialData