public class Sapling extends Wood
Material.SAPLINGDEFAULT_SPECIES, DEFAULT_TYPE| 构造器和说明 |
|---|
Sapling()
构造本类.
|
Sapling(int type,
byte data)
已过时。
不安全的参数
|
Sapling(Material type)
以给定的物品种类构造本类.
|
Sapling(Material type,
byte data)
已过时。
不安全的参数
|
Sapling(Material type,
TreeSpecies species)
以给定的物品种类和树木种类构造本类.
|
Sapling(Material type,
TreeSpecies species,
boolean isInstantGrowable)
以给定的物品种类和树木种类和是否瞬间长大构造本类.
|
Sapling(TreeSpecies species)
以给定的树木种类构造本类.
|
Sapling(TreeSpecies species,
boolean isInstantGrowable)
以给定的树木种类和是否顷刻间长成构造本类.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Sapling |
clone() |
boolean |
isInstantGrowable()
检测这个树苗是否应该在用使用骨粉时瞬间长大(可以长成树).
|
void |
setIsInstantGrowable(boolean isInstantGrowable)
设置这个树苗是否应该在用使用骨粉时瞬间长大(可以长成树).
|
java.lang.String |
toString() |
getSpecies, setSpeciesequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Sapling()
原文:Constructs a sapling.
public Sapling(TreeSpecies species)
原文:Constructs a sapling of the given tree species.
species - 树苗的树木种类public Sapling(TreeSpecies species, boolean isInstantGrowable)
原文:Constructs a sapling of the given tree species and if is it instant growable
species - 木头的树木种类isInstantGrowable - true 如果树苗应该在用使用骨粉时瞬间长大public Sapling(Material type)
原文:Constructs a sapling of the given type.
type - 木头的树木种类public Sapling(Material type, TreeSpecies species)
原文:Constructs a sapling of the given type and tree species.
type - 树苗的物品种类species - 树苗的树木种类public Sapling(Material type, TreeSpecies species, boolean isInstantGrowable)
原文:Constructs a sapling of the given type and tree species and if is it instant growable
type - 树苗的物品种类species - 树苗的树木种类isInstantGrowable - true 如果树苗应该在用使用骨粉时瞬间长大@Deprecated
public Sapling(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public Sapling(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isInstantGrowable()
原文:Checks if the Sapling would grow when next ticked with bonemeal
public void setIsInstantGrowable(boolean isInstantGrowable)
原文:Set whether this sapling will grow when next ticked with bonemeal
isInstantGrowable - 这个树苗是否应该在用使用骨粉时瞬间长大