public class Sign extends MaterialData implements Attachable
| 构造器和说明 |
|---|
Sign() |
Sign(int type)
已过时。
不安全的参数
|
Sign(int type,
byte data)
已过时。
不安全的参数
|
Sign(Material type) |
Sign(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
Sign |
clone() |
BlockFace |
getAttachedFace()
获取这个木牌附着的朝向.
|
BlockFace |
getFacing()
获取这个告示牌当前的朝向.
|
boolean |
isWallSign()
检测这个告示牌是否依附在墙上.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Sign()
@Deprecated public Sign(int type)
type - the raw type idpublic Sign(Material type)
@Deprecated
public Sign(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public Sign(Material type, byte data)
type - the raw type iddata - the raw data valuepublic boolean isWallSign()
原文:Check if this sign is attached to a wall
public BlockFace getAttachedFace()
原文:Gets the face that this block is attached on
getAttachedFace 在接口中 Attachablepublic BlockFace getFacing()
译注:与另一个方法不同的是,本方法获得是这个告示牌方块本身得朝向,另一个方法是告示牌依附得方向(向哪依附).
原文:Gets the direction that this sign is currently facing
getFacing 在接口中 Directionalpublic void setFacingDirection(BlockFace face)
Directional原文:Sets the direction that this block is facing in
setFacingDirection 在接口中 Directionalface - 这个方块的朝向public java.lang.String toString()
toString 在类中 MaterialDatapublic Sign clone()
clone 在类中 MaterialData