|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.SimpleAttachableMaterialData org.bukkit.material.TrapDoor
public class TrapDoor
Represents a trap door
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData |
---|
getFacing |
Methods inherited from class org.bukkit.material.MaterialData |
---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TrapDoor()
@Deprecated public TrapDoor(int type)
public TrapDoor(Material type)
@Deprecated public TrapDoor(int type, byte data)
@Deprecated public TrapDoor(Material type, byte data)
Method Detail |
---|
public boolean isOpen()
Openable
isOpen
in interface Openable
public void setOpen(boolean isOpen)
Openable
setOpen
in interface Openable
isOpen
- True to open the door.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |