java.lang.Cloneable, Attachable, Directional, Openablepublic class TrapDoor extends SimpleAttachableMaterialData implements Openable
| Constructor | Description | 
|---|---|
| TrapDoor() | |
| TrapDoor(Material type) | |
| TrapDoor(Material type,
        byte data) | Deprecated.
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| TrapDoor | clone() | |
| BlockFace | getAttachedFace() | Gets the face that this block is attached on | 
| boolean | isInverted() | Test if trapdoor is inverted | 
| boolean | isOpen() | Check to see if the door is open. | 
| void | setFacingDirection(BlockFace face) | Sets the direction that this block is facing in | 
| void | setInverted(boolean inv) | Set trapdoor inverted state | 
| void | setOpen(boolean isOpen) | Configure this door to be either open or closed; | 
| java.lang.String | toString() | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetFacingpublic TrapDoor()
public TrapDoor(Material type)
@Deprecated public TrapDoor(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isOpen()
Openablepublic void setOpen(boolean isOpen)
Openablepublic boolean isInverted()
public void setInverted(boolean inv)
inv - - true if inverted (top half), false if normal (bottom half)public BlockFace getAttachedFace()
AttachablegetAttachedFace in interface Attachablepublic void setFacingDirection(BlockFace face)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic java.lang.String toString()
toString in class SimpleAttachableMaterialDatapublic TrapDoor clone()
clone in class SimpleAttachableMaterialDataCopyright © 2018. All rights reserved.