public class TrapDoor extends SimpleAttachableMaterialData implements Openable
| Constructor and Description | 
|---|
TrapDoor()  | 
TrapDoor(int type)
Deprecated. 
 
Magic value 
 | 
TrapDoor(int type,
        byte data)
Deprecated. 
 
Magic value 
 | 
TrapDoor(Material type)  | 
TrapDoor(Material type,
        byte data)
Deprecated. 
 
Magic value 
 | 
| Modifier and Type | Method and 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; 
 | 
String | 
toString()  | 
getFacingequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic 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()
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 © 2022. All rights reserved.