public class TrapDoor extends SimpleAttachableMaterialData implements Openable
构造器和说明 |
---|
TrapDoor() |
TrapDoor(int type)
已过时。
不安全的参数
|
TrapDoor(int type,
byte data)
已过时。
不安全的参数
|
TrapDoor(Material type) |
TrapDoor(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
TrapDoor |
clone() |
BlockFace |
getAttachedFace()
获取这个方块附着的朝向.
|
boolean |
isInverted()
这个活板门是否被反转.
|
boolean |
isOpen()
检测这个门是否开着.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
void |
setInverted(boolean inv)
设置这个台阶是否被反转。
|
void |
setOpen(boolean isOpen)
设置这个门是否开着.
|
java.lang.String |
toString() |
getFacing
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public TrapDoor()
@Deprecated public TrapDoor(int type)
type
- the raw type idpublic TrapDoor(Material type)
@Deprecated public TrapDoor(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public TrapDoor(Material type, byte data)
type
- the typedata
- the raw data valuepublic 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 boolean isInverted()
原文:Test if trapdoor is inverted
public void setInverted(boolean inv)
原文:Set trapdoor inverted state
inv
- true为反转的(上半), false为正常形态(下半)public BlockFace getAttachedFace()
Attachable
原文: Gets the face that this block is attached on
getAttachedFace
在接口中 Attachable
public void setFacingDirection(BlockFace face)
Directional
原文:Sets the direction that this block is facing in
setFacingDirection
在接口中 Directional
face
- 这个方块的朝向public java.lang.String toString()
toString
在类中 SimpleAttachableMaterialData
public TrapDoor clone()
clone
在类中 SimpleAttachableMaterialData