public class WoodenStep extends Wood
限定符和类型 | 字段和说明 |
---|---|
protected static boolean |
DEFAULT_INVERTED |
protected static Material |
DEFAULT_TYPE |
DEFAULT_SPECIES
构造器和说明 |
---|
WoodenStep()
构造本类.
|
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, setSpecies
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
protected 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 the step is at the top of the block@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,普通台阶(底部台阶)为falsepublic WoodenStep clone()