public class DirectionalContainer extends MaterialData implements Directional
| 构造器和说明 |
|---|
DirectionalContainer(int type)
已过时。
不安全的参数
|
DirectionalContainer(int type,
byte data)
已过时。
不安全的参数
|
DirectionalContainer(Material type) |
DirectionalContainer(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
DirectionalContainer |
clone() |
BlockFace |
getFacing()
获取这个方块的朝向.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack@Deprecated public DirectionalContainer(int type)
type - the raw type idpublic DirectionalContainer(Material type)
@Deprecated
public DirectionalContainer(int type,
byte data)
type - the raw type iddata - the raw data@Deprecated public DirectionalContainer(Material type, byte data)
type - the typedata - the raw datapublic void setFacingDirection(BlockFace face)
Directional原文:Sets the direction that this block is facing in
setFacingDirection 在接口中 Directionalface - 这个方块的朝向public BlockFace getFacing()
Directional原文:Gets the direction this block is facing
getFacing 在接口中 Directionalpublic java.lang.String toString()
toString 在类中 MaterialDatapublic DirectionalContainer clone()
clone 在类中 MaterialData