类 Leaves
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Leaves
- 所有已实现的接口:
Cloneable
已过时。
Represents the different types of leaf block that may be permanent or can
decay when too far from a log.
-
字段概要
从类继承的字段 org.bukkit.material.Wood
DEFAULT_SPECIES
-
构造器概要
构造器说明Leaves()
已过时。Constructs a leaf block.已过时。Constructs a leaf block of the given type.已过时。Magic valueLeaves
(Material type, TreeSpecies species) 已过时。Constructs a leaf block of the given type and tree species.Leaves
(Material type, TreeSpecies species, boolean 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
(TreeSpecies species) 已过时。Constructs a leaf block of the given tree species.Leaves
(TreeSpecies species, boolean 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. -
方法概要
修饰符和类型方法说明clone()
已过时。boolean
已过时。Checks if this leaf block is permanent or can decay when too far from a logboolean
已过时。Checks if this leaf block is in the process of decayingvoid
setDecayable
(boolean isDecayable) 已过时。Set whether this leaf block will disappear when too far from a logvoid
setDecaying
(boolean isDecaying) 已过时。Set whether this leaf block is in the process of decayingtoString()
已过时。从类继承的方法 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
已过时。Constructs a leaf block of the given tree species.- 参数:
species
- the species of the wood block
-
Leaves
已过时。Constructs a leaf block of the given tree species and flag for whether this leaf block will disappear when too far from a log.- 参数:
species
- the species of the wood blockisDecayable
- whether the block is permanent or can disappear
-
Leaves
已过时。Constructs a leaf block of the given type.- 参数:
type
- the type of leaf block
-
Leaves
已过时。Constructs a leaf block of the given type and tree species.- 参数:
type
- the type of leaf blockspecies
- the species of the wood block
-
Leaves
已过时。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.- 参数:
type
- the type of leaf blockspecies
- the species of the wood blockisDecayable
- whether the block is permanent or can disappear
-
Leaves
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
isDecaying
public boolean isDecaying()已过时。Checks if this leaf block is in the process of decaying- 返回:
- true if the leaf block is in the process of decaying
-
setDecaying
public void setDecaying(boolean isDecaying) 已过时。Set whether this leaf block is in the process of decaying- 参数:
isDecaying
- whether the block is decaying or not
-
isDecayable
public boolean isDecayable()已过时。Checks if this leaf block is permanent or can decay when too far from a log- 返回:
- true if the leaf block is permanent or can decay when too far from a log
-
setDecayable
public void setDecayable(boolean isDecayable) 已过时。Set whether this leaf block will disappear when too far from a log- 参数:
isDecayable
- whether the block is permanent or can disappear
-
toString
已过时。 -
clone
已过时。
-
BlockData
.