类 Tree

所有已实现的接口:
Cloneable

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

    • DEFAULT_TYPE

      protected static final Material DEFAULT_TYPE
      已过时。
    • DEFAULT_DIRECTION

      protected static final BlockFace DEFAULT_DIRECTION
      已过时。
  • 构造器详细资料

    • Tree

      public Tree()
      已过时。
      构造一个树木方块。

      原文:Constructs a tree block.

    • Tree

      public Tree(TreeSpecies species)
      已过时。
      构造一个给定树种的树木方块。
      参数:
      species - 树木方块的树种

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

    • Tree

      public Tree(TreeSpecies species, BlockFace dir)
      已过时。
      构造一个给定树种且朝向给定方向的树木方块。
      参数:
      species - 树木方块的树种
      dir - 树木方块朝向的方向

      原文:Constructs a tree block of the given tree species, and facing the given direction.

    • Tree

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

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

    • Tree

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

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

    • Tree

      public Tree(Material type, TreeSpecies species, BlockFace dir)
      已过时。
      构造一个给定类型和树种且朝向给定方向的树木方块。
      参数:
      type - 树木方块的类型
      species - 树木方块的树种
      dir - 树木方块朝向的方向

      原文:Constructs a tree block of the given type and tree species, and facing the given direction.

    • Tree

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

      原文:Magic value

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

    • getDirection

      public BlockFace getDirection()
      已过时。
      获取原木的方向。
      返回:
      以下之一:
      • BlockFace.UP 表示直立(默认)
      • BlockFace.NORTH 表示东西方向
      • BlockFace.WEST 表示南北方向
      • BlockFace.SELF 表示无方向

      原文:Get direction of the log

    • setDirection

      public void setDirection(BlockFace dir)
      已过时。
      设置原木的方向。
      参数:
      dir - - 原木末端的方向(BlockFace.SELF 表示无方向)

      原文:Set direction of the log

    • toString

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

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