Cloneable, Attachable, Directional, OpenableBlockData.@Deprecated public class TrapDoor extends SimpleAttachableMaterialData implements Openable
| Constructor | Description | 
|---|---|
| TrapDoor() | Deprecated.  | 
| TrapDoor(Material type) | Deprecated.  | 
| TrapDoor(Material type,
        byte data) | Deprecated. 
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| TrapDoor | clone() | Deprecated.  | 
| BlockFace | getAttachedFace() | Deprecated.  Gets the face that this block is attached on | 
| boolean | isInverted() | Deprecated.  Test if trapdoor is inverted | 
| boolean | isOpen() | Deprecated.  Check to see if the door is open. | 
| void | setFacingDirection(BlockFace face) | Deprecated.  Sets the direction that this block is facing in | 
| void | setInverted(boolean inv) | Deprecated.  Set trapdoor inverted state | 
| void | setOpen(boolean isOpen) | Deprecated.  Configure this door to be either open or closed; | 
| String | toString() | Deprecated.  | 
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 String toString()
toString in class SimpleAttachableMaterialDatapublic TrapDoor clone()
clone in class SimpleAttachableMaterialDataCopyright © 2020. All rights reserved.