Cloneable
, Attachable
, Directional
, Openable
@Deprecated public class TrapDoor extends SimpleAttachableMaterialData implements Openable
BlockData
.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, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getFacing
public TrapDoor()
public TrapDoor(Material type)
@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 © 2020. All rights reserved.