类 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
(int type, byte data) 已过时。不安全的参数以给定的物品种类构造本类.已过时。不安全的参数Sapling
(Material type, TreeSpecies species) 以给定的物品种类和树木种类构造本类.Sapling
(Material type, TreeSpecies species, boolean isInstantGrowable) 以给定的物品种类和树木种类和是否瞬间长大构造本类.Sapling
(TreeSpecies species) 以给定的树木种类构造本类.Sapling
(TreeSpecies species, boolean isInstantGrowable) 以给定的树木种类和是否顷刻间长成构造本类. -
方法概要
修饰符和类型方法说明clone()
boolean
检测这个树苗是否应该在用使用骨粉时瞬间长大(可以长成树).void
setIsInstantGrowable
(boolean isInstantGrowable) 设置这个树苗是否应该在用使用骨粉时瞬间长大(可以长成树).toString()
从类继承的方法 org.bukkit.material.Wood
getSpecies, setSpecies
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Sapling
public Sapling()构造本类.原文:Constructs a sapling.
-
Sapling
以给定的树木种类构造本类.原文:Constructs a sapling of the given tree species.
- 参数:
species
- 树苗的树木种类
-
Sapling
以给定的树木种类和是否顷刻间长成构造本类.原文:Constructs a sapling of the given tree species and if is it instant growable
- 参数:
species
- 木头的树木种类isInstantGrowable
- true 如果树苗应该在用使用骨粉时瞬间长大
-
Sapling
以给定的物品种类构造本类.原文:Constructs a sapling of the given type.
- 参数:
type
- 木头的树木种类
-
Sapling
以给定的物品种类和树木种类构造本类.原文:Constructs a sapling of the given type and tree species.
- 参数:
type
- 树苗的物品种类species
- 树苗的树木种类
-
Sapling
以给定的物品种类和树木种类和是否瞬间长大构造本类.原文:Constructs a sapling of the given type and tree species and if is it instant growable
- 参数:
type
- 树苗的物品种类species
- 树苗的树木种类isInstantGrowable
- true 如果树苗应该在用使用骨粉时瞬间长大
-
Sapling
已过时。不安全的参数- 参数:
type
- the raw type iddata
- the raw data value
-
Sapling
已过时。不安全的参数- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
isInstantGrowable
public boolean isInstantGrowable()检测这个树苗是否应该在用使用骨粉时瞬间长大(可以长成树).原文:Checks 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
- 这个树苗是否应该在用使用骨粉时瞬间长大
-
toString
-
clone
-