类 Tree

所有已实现的接口:
Cloneable

@Deprecated public class Tree extends Wood
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents the different types of Tree block that face a direction.
另请参阅:
  • 字段详细资料

    • 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)
      已过时。
      Constructs a tree block of the given tree species.
      参数:
      species - the species of the tree block
    • Tree

      public Tree(TreeSpecies species, BlockFace dir)
      已过时。
      Constructs a tree block of the given tree species, and facing the given direction.
      参数:
      species - the species of the tree block
      dir - the direction the tree block is facing
    • Tree

      public Tree(Material type)
      已过时。
      Constructs a tree block of the given type.
      参数:
      type - the type of tree block
    • Tree

      public Tree(Material type, TreeSpecies species)
      已过时。
      Constructs a tree block of the given type and tree species.
      参数:
      type - the type of tree block
      species - the species of the tree block
    • Tree

      public Tree(Material type, TreeSpecies species, BlockFace dir)
      已过时。
      Constructs a tree block of the given type and tree species, and facing the given direction.
      参数:
      type - the type of tree block
      species - the species of the tree block
      dir - the direction the tree block is facing
    • Tree

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

    • getDirection

      public BlockFace getDirection()
      已过时。
      Get direction of the log
      返回:
      one of:
      • BlockFace.TOP for upright (default)
      • BlockFace.NORTH (east-west)
      • BlockFace.WEST (north-south)
      • BlockFace.SELF (directionless)
    • setDirection

      public void setDirection(BlockFace dir)
      已过时。
      Set direction of the log
      参数:
      dir - - direction of end of log (BlockFace.SELF for no direction)
    • toString

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

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