类 Leaves
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Leaves
- 所有已实现的接口:
Cloneable
已过时。
代表不同类型的树叶方块,这些方块可能是永久存在的,或者在距离原木太远时会腐烂。
-
字段概要
字段从类继承的字段 org.bukkit.material.Wood
DEFAULT_SPECIES -
构造器概要
构造器构造器说明Leaves()已过时。构造一个树叶方块。已过时。构造指定类型的树叶方块。已过时。魔法值Leaves(Material type, TreeSpecies species) 已过时。构造指定类型和树种的树叶方块。Leaves(Material type, TreeSpecies species, boolean isDecayable) 已过时。构造指定类型和树种的树叶方块,并标记该树叶方块在距离原木太远时是否会消失。Leaves(TreeSpecies species) 已过时。构造指定树种的树叶方块。Leaves(TreeSpecies species, boolean isDecayable) 已过时。构造指定树种的树叶方块,并标记该树叶方块在距离原木太远时是否会消失。 -
方法概要
修饰符和类型方法说明clone()已过时。boolean已过时。检查此树叶方块是永久存在的还是在距离原木太远时会腐烂boolean已过时。检查此树叶方块是否正在腐烂voidsetDecayable(boolean isDecayable) 已过时。设置此树叶方块在距离原木太远时是否会消失voidsetDecaying(boolean isDecaying) 已过时。设置此树叶方块是否正在腐烂toString()已过时。从类继承的方法 org.bukkit.material.Wood
getSpecies, setSpecies从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
字段详细资料
-
DEFAULT_TYPE
已过时。 -
DEFAULT_DECAYABLE
protected static final boolean DEFAULT_DECAYABLE已过时。- 另请参阅:
-
-
构造器详细资料
-
Leaves
public Leaves()已过时。构造一个树叶方块。原文:Constructs a leaf block.
-
Leaves
已过时。构造指定树种的树叶方块。- 参数:
species- 木方块的树种原文:Constructs a leaf block of the given tree species.
-
Leaves
已过时。构造指定树种的树叶方块,并标记该树叶方块在距离原木太远时是否会消失。- 参数:
species- 木方块的树种isDecayable- 方块是永久存在还是可以消失原文:Constructs a leaf block of the given tree species and flag for whether this leaf block will disappear when too far from a log.
-
Leaves
已过时。构造指定类型的树叶方块。- 参数:
type- 树叶方块的类型原文:Constructs a leaf block of the given type.
-
Leaves
已过时。构造指定类型和树种的树叶方块。- 参数:
type- 树叶方块的类型species- 木方块的树种原文:Constructs a leaf block of the given type and tree species.
-
Leaves
已过时。构造指定类型和树种的树叶方块,并标记该树叶方块在距离原木太远时是否会消失。- 参数:
type- 树叶方块的类型species- 木方块的树种isDecayable- 方块是永久存在还是可以消失原文:Constructs a leaf block of the given type and tree species and flag for whether this leaf block will disappear when too far from a log.
-
Leaves
已过时。魔法值- 参数:
type- 类型data- 原始数据值
-
-
方法详细资料
-
isDecaying
public boolean isDecaying()已过时。检查此树叶方块是否正在腐烂- 返回:
- 如果树叶方块正在腐烂则返回true
原文:Checks if this leaf block is in the process of decaying
-
setDecaying
public void setDecaying(boolean isDecaying) 已过时。设置此树叶方块是否正在腐烂- 参数:
isDecaying- 方块是否正在腐烂原文:Set whether this leaf block is in the process of decaying
-
isDecayable
public boolean isDecayable()已过时。检查此树叶方块是永久存在的还是在距离原木太远时会腐烂- 返回:
- 如果树叶方块是永久存在的或在距离原木太远时会腐烂则返回true
原文:Checks if this leaf block is permanent or can decay when too far from a log
-
setDecayable
public void setDecayable(boolean isDecayable) 已过时。设置此树叶方块在距离原木太远时是否会消失- 参数:
isDecayable- 方块是永久存在还是可以消失原文:Set whether this leaf block will disappear when too far from a log
-
toString
已过时。 -
clone
已过时。
-
BlockData。