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