public class Stairs extends MaterialData implements Directional
| 构造器和说明 |
|---|
Stairs(int type)
已过时。
不安全的参数
|
Stairs(int type,
byte data)
已过时。
不安全的参数
|
Stairs(Material type) |
Stairs(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
Stairs |
clone() |
BlockFace |
getAscendingDirection() |
BlockFace |
getDescendingDirection() |
BlockFace |
getFacing()
获取这个方块的朝向.
|
boolean |
isInverted()
测试这个台阶是否被反转.
|
void |
setFacingDirection(BlockFace face)
设置楼梯部分的朝向.
|
void |
setInverted(boolean inv)
设置台阶的反转状态.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack@Deprecated public Stairs(int type)
type - the raw type idpublic Stairs(Material type)
@Deprecated
public Stairs(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public Stairs(Material type, byte data)
type - the typedata - the raw data valuepublic BlockFace getAscendingDirection()
public BlockFace getDescendingDirection()
public void setFacingDirection(BlockFace face)
原文:Set the direction the stair part of the block is facing
setFacingDirection 在接口中 Directionalface - 这个方块的朝向public BlockFace getFacing()
Directional原文:Gets the direction this block is facing
getFacing 在接口中 Directionalpublic boolean isInverted()
原文:Test if step is inverted
public void setInverted(boolean inv)
原文:Set step inverted state
inv - - true为台阶被反转(上半),false为一般状态(下半)public java.lang.String toString()
toString 在类中 MaterialDatapublic Stairs clone()
clone 在类中 MaterialData