类 Wood

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

@Deprecated(since="1.14.1") public class Wood extends MaterialData
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表不同树种的木头方块。
另请参阅:
  • 字段详细资料

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

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

    • Wood

      public Wood(Material type)
      已过时。
      构造一个给定类型的木头方块。
      参数:
      type - 木头方块的类型

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

    • Wood

      public Wood(Material type, TreeSpecies species)
      已过时。
      构造一个给定类型和树种的木头方块。
      参数:
      type - 木头方块的类型
      species - 木头方块的树种

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

    • Wood

      @Deprecated(since="1.9") public Wood(Material type, byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      type - 物品类型
      data - 原始数据值
  • 方法详细资料

    • getSpecies

      public TreeSpecies getSpecies()
      已过时。
      获取此木头方块的当前树种。
      返回:
      此木头方块的 TreeSpecies

      原文:Gets the current species of this wood block

    • setSpecies

      public void setSpecies(TreeSpecies species)
      已过时。
      设置此木头方块的树种。
      参数:
      species - 此木头方块的新树种

      原文:Sets the species of this wood block

    • toString

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

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