|
||||||||||
| 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.Gate
public class Gate
Represents a fence gate
| Constructor Summary | |
|---|---|
Gate()
|
|
Gate(byte data)
|
|
Gate(int type,
byte data)
|
|
| Method Summary | |
|---|---|
Gate |
clone()
|
BlockFace |
getFacing()
Gets the direction this block is facing |
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.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 Gate()
public Gate(int type,
byte data)
public Gate(byte data)
| Method Detail |
|---|
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
Directional
getFacing in interface Directionalpublic boolean isOpen()
Openable
isOpen in interface Openablepublic void setOpen(boolean isOpen)
Openable
setOpen in interface OpenableisOpen - True to open the door.public String toString()
toString in class MaterialDatapublic Gate clone()
clone in class MaterialData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||