类 Sapling
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Sapling
- 所有已实现的接口:
Cloneable
已过时。
代表不同类型的朝向特定方向的树苗方块。
- 另请参阅:
-
字段概要
从类继承的字段 org.bukkit.material.Wood
DEFAULT_SPECIES, DEFAULT_TYPE -
构造器概要
构造器构造器说明Sapling()已过时。构造一个树苗。已过时。构造一个给定类型的树苗。已过时。魔法值Sapling(Material type, TreeSpecies species) 已过时。构造一个给定类型和树种的树苗。Sapling(Material type, TreeSpecies species, boolean isInstantGrowable) 已过时。构造一个给定类型和树种的树苗,并指定其是否可以立即生长。Sapling(TreeSpecies species) 已过时。构造一个给定树种的树苗。Sapling(TreeSpecies species, boolean isInstantGrowable) 已过时。构造一个给定树种的树苗,并指定其是否可以立即生长。 -
方法概要
修饰符和类型方法说明clone()已过时。boolean已过时。检查树苗是否会在下次被骨粉催熟时生长。voidsetIsInstantGrowable(boolean isInstantGrowable) 已过时。设置此树苗是否会在下次被骨粉催熟时生长。toString()已过时。从类继承的方法 org.bukkit.material.Wood
getSpecies, setSpecies从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Sapling
public Sapling()已过时。构造一个树苗。原文:Constructs a sapling.
-
Sapling
已过时。构造一个给定树种的树苗。- 参数:
species- 树苗的树种原文:Constructs a sapling of the given tree species.
-
Sapling
已过时。构造一个给定树种的树苗,并指定其是否可以立即生长。- 参数:
species- 树苗方块的树种isInstantGrowable- 如果树苗应在下次被骨粉催熟时生长则为 true原文:Constructs a sapling of the given tree species and if is it instant growable
-
Sapling
已过时。构造一个给定类型的树苗。- 参数:
type- 树苗方块的类型原文:Constructs a sapling of the given type.
-
Sapling
已过时。构造一个给定类型和树种的树苗。- 参数:
type- 树苗的类型species- 树苗的树种原文:Constructs a sapling of the given type and tree species.
-
Sapling
已过时。构造一个给定类型和树种的树苗,并指定其是否可以立即生长。- 参数:
type- 树苗的类型species- 树苗的树种isInstantGrowable- 如果树苗应在下次被骨粉催熟时生长则为 true原文:Constructs a sapling of the given type and tree species and if is it instant growable
-
Sapling
已过时。魔法值原文:Magic value
- 参数:
type- 物品类型data- 原始数据值
-
-
方法详细资料
-
isInstantGrowable
public boolean isInstantGrowable()已过时。检查树苗是否会在下次被骨粉催熟时生长。- 返回:
- 如果树苗会在下次被骨粉催熟时生长则返回 true
原文:Checks if the Sapling would grow when next ticked with bonemeal
-
setIsInstantGrowable
public void setIsInstantGrowable(boolean isInstantGrowable) 已过时。设置此树苗是否会在下次被骨粉催熟时生长。- 参数:
isInstantGrowable- 如果树苗应在下次被骨粉催熟时生长则为 true原文:Set whether this sapling will grow when next ticked with bonemeal
-
toString
已过时。 -
clone
已过时。
-
BlockData。