public class WoodenStep extends Wood
Material.WOOD_STEP| 限定符和类型 | 字段和说明 |
|---|---|
protected static boolean |
DEFAULT_INVERTED |
protected static Material |
DEFAULT_TYPE |
DEFAULT_SPECIES| 构造器和说明 |
|---|
WoodenStep()
构造本类.
|
WoodenStep(int type)
已过时。
不安全的参数
|
WoodenStep(int type,
byte data)
已过时。
不安全的参数
|
WoodenStep(Material type,
byte data)
已过时。
不安全的参数
|
WoodenStep(TreeSpecies species)
以给定的树木种类构造本类.
|
WoodenStep(TreeSpecies species,
boolean inv)
以给定的树木种类和台阶类型(上半台阶和普通台阶)构造本类.
|
| 限定符和类型 | 方法和说明 |
|---|---|
WoodenStep |
clone() |
boolean |
isInverted()
这个台阶是否被反转的。
|
void |
setInverted(boolean inv)
设置这个台阶是否被反转。
|
java.lang.String |
toString() |
getSpecies, setSpeciesequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackprotected static final Material DEFAULT_TYPE
protected static final boolean DEFAULT_INVERTED
public WoodenStep()
原文:Constructs a wooden step.
public WoodenStep(TreeSpecies species)
原文:Constructs a wooden step of the given tree species.
species - 这个台阶的树木种类public WoodenStep(TreeSpecies species, boolean inv)
原文:Constructs a wooden step of the given type and tree species, either inverted or not.
species - 这个台阶的树木种类inv - 如果这是上半台阶则为true@Deprecated public WoodenStep(int type)
type - the raw type id@Deprecated
public WoodenStep(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public WoodenStep(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isInverted()
原文:Test if step is inverted
public void setInverted(boolean inv)
原文:Set step inverted state
inv - true为反转的(上半), false为正常形态(下半)public WoodenStep clone()