类 Sapling
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Sapling
- 所有已实现的接口:
Cloneable
已过时。
Represents the different types of Tree block that face a direction.
- 另请参阅:
-
字段概要
从类继承的字段 org.bukkit.material.Wood
DEFAULT_SPECIES, DEFAULT_TYPE
-
构造器概要
构造器说明Sapling()
已过时。Constructs a sapling.已过时。Constructs a sapling of the given type.已过时。Magic valueSapling
(Material type, TreeSpecies species) 已过时。Constructs a sapling of the given type and tree species.Sapling
(Material type, TreeSpecies species, boolean isInstantGrowable) 已过时。Constructs a sapling of the given type and tree species and if is it instant growableSapling
(TreeSpecies species) 已过时。Constructs a sapling of the given tree species.Sapling
(TreeSpecies species, boolean isInstantGrowable) 已过时。Constructs a sapling of the given tree species and if is it instant growable -
方法概要
修饰符和类型方法说明clone()
已过时。boolean
已过时。Checks if the Sapling would grow when next ticked with bonemealvoid
setIsInstantGrowable
(boolean isInstantGrowable) 已过时。Set whether this sapling will grow when next ticked with bonemealtoString()
已过时。从类继承的方法 org.bukkit.material.Wood
getSpecies, setSpecies
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Sapling
public Sapling()已过时。Constructs a sapling. -
Sapling
已过时。Constructs a sapling of the given tree species.- 参数:
species
- the species of the sapling
-
Sapling
已过时。Constructs a sapling of the given tree species and if is it instant growable- 参数:
species
- the species of the tree blockisInstantGrowable
- true if the Sapling should grow when next ticked with bonemeal
-
Sapling
已过时。Constructs a sapling of the given type.- 参数:
type
- the type of tree block
-
Sapling
已过时。Constructs a sapling of the given type and tree species.- 参数:
type
- the type of saplingspecies
- the species of the sapling
-
Sapling
已过时。Constructs a sapling of the given type and tree species and if is it instant growable- 参数:
type
- the type of saplingspecies
- the species of the saplingisInstantGrowable
- true if the Sapling should grow when next ticked with bonemeal
-
Sapling
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
isInstantGrowable
public boolean isInstantGrowable()已过时。Checks if the Sapling would grow when next ticked with bonemeal- 返回:
- true if the Sapling would grow when next ticked with bonemeal
-
setIsInstantGrowable
public void setIsInstantGrowable(boolean isInstantGrowable) 已过时。Set whether this sapling will grow when next ticked with bonemeal- 参数:
isInstantGrowable
- true if the Sapling should grow when next ticked with bonemeal
-
toString
已过时。 -
clone
已过时。
-
BlockData
.