类 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.Leaves
(int type) 已过时。不安全的参数Leaves
(int type, byte data) 已过时。不安全的参数Constructs a leaf block of the given type.已过时。不安全的参数Leaves
(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, getItemTypeId, 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
已过时。不安全的参数- 参数:
type
- the raw type id
-
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
已过时。不安全的参数- 参数:
type
- the raw type iddata
- the raw data value
-
Leaves
已过时。不安全的参数- 参数:
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
-