类 Tree
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Tree
- 所有已实现的接口:
Cloneable
已过时。
代表不同类型的朝向特定方向的树木方块。
-
字段概要
字段从类继承的字段 org.bukkit.material.Wood
DEFAULT_SPECIES -
构造器概要
构造器构造器说明Tree()已过时。构造一个树木方块。已过时。构造一个给定类型的树木方块。已过时。魔法值Tree(Material type, TreeSpecies species) 已过时。构造一个给定类型和树种的树木方块。Tree(Material type, TreeSpecies species, BlockFace dir) 已过时。构造一个给定类型和树种且朝向给定方向的树木方块。Tree(TreeSpecies species) 已过时。构造一个给定树种的树木方块。Tree(TreeSpecies species, BlockFace dir) 已过时。构造一个给定树种且朝向给定方向的树木方块。 -
方法概要
修饰符和类型方法说明clone()已过时。已过时。获取原木的方向。voidsetDirection(BlockFace dir) 已过时。设置原木的方向。toString()已过时。从类继承的方法 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
已过时。构造一个给定树种的树木方块。- 参数:
species- 树木方块的树种原文:Constructs a tree block of the given tree species.
-
Tree
已过时。构造一个给定树种且朝向给定方向的树木方块。- 参数:
species- 树木方块的树种dir- 树木方块朝向的方向原文:Constructs a tree block of the given tree species, and facing the given direction.
-
Tree
已过时。构造一个给定类型的树木方块。- 参数:
type- 树木方块的类型原文:Constructs a tree block of the given type.
-
Tree
已过时。构造一个给定类型和树种的树木方块。- 参数:
type- 树木方块的类型species- 树木方块的树种原文:Constructs a tree block of the given type and tree species.
-
Tree
已过时。构造一个给定类型和树种且朝向给定方向的树木方块。- 参数:
type- 树木方块的类型species- 树木方块的树种dir- 树木方块朝向的方向原文:Constructs a tree block of the given type and tree species, and facing the given direction.
-
Tree
已过时。魔法值原文:Magic value
- 参数:
type- 物品类型data- 原始数据值
-
-
方法详细资料
-
getDirection
已过时。获取原木的方向。- 返回:
- 以下之一:
- BlockFace.UP 表示直立(默认)
- BlockFace.NORTH 表示东西方向
- BlockFace.WEST 表示南北方向
- BlockFace.SELF 表示无方向
原文:Get direction of the log
-
setDirection
已过时。设置原木的方向。- 参数:
dir- - 原木末端的方向(BlockFace.SELF 表示无方向)原文:Set direction of the log
-
toString
已过时。 -
clone
已过时。
-
BlockData。