类 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()
构造一个树木方块.Tree
(int type) 已过时。不安全的参数Tree
(int type, byte data) 已过时。不安全的参数Constructs a tree block of the given type.已过时。不安全的参数Tree
(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. -
方法概要
从类继承的方法 org.bukkit.material.Wood
getSpecies, setSpecies
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, 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
已过时。不安全的参数- 参数:
type
- the raw type id
-
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
已过时。不安全的参数- 参数:
type
- the raw type iddata
- the raw data value
-
Tree
已过时。不安全的参数- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
getDirection
获取木头的朝向.原文:Get direction of the log
- 返回:
- 其中之一:
- BlockFace.TOP 直立 (默认)
- BlockFace.NORTH (东西朝向)
- BlockFace.WEST (南北朝向)
- BlockFace.SELF 无朝向 (仅树皮)
-
setDirection
设置木头的朝向.原文:Set direction of the log
- 参数:
dir
- - 木头一端的朝向,BlockFace.SELF 即为无朝向(仅树皮)
-
toString
-
clone
-