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() |
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
public void setOpen(boolean isOpen)
Openable
public boolean isInverted()
public void setInverted(boolean inv)
inv
- - true if inverted (top half), false if normal (bottom half)public BlockFace getAttachedFace()
Attachable
getAttachedFace
in interface Attachable
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic String toString()
toString
in class SimpleAttachableMaterialData
public TrapDoor clone()
clone
in class SimpleAttachableMaterialData
Copyright © 2021. All rights reserved.