类 Tree
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Tree
- 所有已实现的接口:
Cloneable
已过时。
Represents the different types of Tree block that face a direction.
-
字段概要
从类继承的字段 org.bukkit.material.Wood
DEFAULT_SPECIES
-
构造器概要
构造器说明Tree()
已过时。Constructs a tree block.已过时。Constructs a tree block of the given type.已过时。Magic valueTree
(Material type, TreeSpecies species) 已过时。Constructs a tree block of the given type and tree species.Tree
(Material type, TreeSpecies species, BlockFace dir) 已过时。Constructs a tree block of the given type and tree species, and facing the given direction.Tree
(TreeSpecies species) 已过时。Constructs a tree block of the given tree species.Tree
(TreeSpecies species, BlockFace dir) 已过时。Constructs a tree block of the given tree species, and facing the given direction. -
方法概要
修饰符和类型方法说明clone()
已过时。已过时。Get direction of the logvoid
setDirection
(BlockFace dir) 已过时。Set direction of the logtoString()
已过时。从类继承的方法 org.bukkit.material.Wood
getSpecies, setSpecies
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
字段详细资料
-
DEFAULT_TYPE
已过时。 -
DEFAULT_DIRECTION
已过时。
-
-
构造器详细资料
-
Tree
public Tree()已过时。Constructs a tree block. -
Tree
已过时。Constructs a tree block of the given tree species.- 参数:
species
- the species of the tree block
-
Tree
已过时。Constructs a tree block of the given tree species, and facing the given direction.- 参数:
species
- the species of the tree blockdir
- the direction the tree block is facing
-
Tree
已过时。Constructs a tree block of the given type.- 参数:
type
- the type of tree block
-
Tree
已过时。Constructs a tree block of the given type and tree species.- 参数:
type
- the type of tree blockspecies
- the species of the tree block
-
Tree
已过时。Constructs a tree block of the given type and tree species, and facing the given direction.- 参数:
type
- the type of tree blockspecies
- the species of the tree blockdir
- the direction the tree block is facing
-
Tree
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
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
已过时。Set direction of the log- 参数:
dir
- - direction of end of log (BlockFace.SELF for no direction)
-
toString
已过时。 -
clone
已过时。
-
BlockData
.