public class Gate extends MaterialData implements Directional, Openable
限定符和类型 | 方法和说明 |
---|---|
Gate |
clone() |
BlockFace |
getFacing()
获取这个方块的朝向.
|
boolean |
isOpen()
检测这个门是否开着.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
void |
setOpen(boolean isOpen)
设置这个门是否开着.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public void setFacingDirection(BlockFace face)
Directional
原文:Sets the direction that this block is facing in
setFacingDirection
在接口中 Directional
face
- 这个方块的朝向public BlockFace getFacing()
Directional
原文:Gets the direction this block is facing
getFacing
在接口中 Directional
public boolean isOpen()
Openable
原文:Check to see if the door is open.
public void setOpen(boolean isOpen)
Openable
原文:Configure this door to be either open or closed;
public java.lang.String toString()
toString
在类中 MaterialData
public Gate clone()
clone
在类中 MaterialData