|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.TrapDoor
public class TrapDoor
Represents a trap door
| Constructor Summary | |
|---|---|
TrapDoor()
|
|
TrapDoor(int type)
|
|
TrapDoor(int type,
byte data)
|
|
TrapDoor(Material type)
|
|
TrapDoor(Material type,
byte data)
|
|
| Method Summary | |
|---|---|
TrapDoor |
clone()
|
BlockFace |
getAttachedFace()
Gets the face that this block is attached on |
boolean |
isOpen()
Check to see if the door is open. |
void |
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in |
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()
public TrapDoor(int type)
public TrapDoor(Material type)
public TrapDoor(int type,
byte data)
public TrapDoor(Material type,
byte data)
| Method Detail |
|---|
public boolean isOpen()
Openable
isOpen in interface Openablepublic void setOpen(boolean isOpen)
Openable
setOpen in interface OpenableisOpen - True to open the door.public BlockFace getAttachedFace()
Attachable
getAttachedFace in interface Attachablepublic void setFacingDirection(BlockFace face)
Directional
setFacingDirection in interface Directionalface - The facing directionpublic String toString()
toString in class SimpleAttachableMaterialDatapublic TrapDoor clone()
clone in class SimpleAttachableMaterialData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||