java.lang.Cloneable, Directional, Openablepublic class Gate extends MaterialData implements Directional, Openable
| Constructor | Description |
|---|---|
Gate() |
|
Gate(byte data) |
|
Gate(int type,
byte data) |
| Modifier and Type | Method | Description |
|---|---|---|
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;
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Gate()
public Gate(int type,
byte data)
public Gate(byte data)
public void setFacingDirection(BlockFace face)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
DirectionalgetFacing in interface Directionalpublic boolean isOpen()
Openablepublic void setOpen(boolean isOpen)
Openablepublic java.lang.String toString()
toString in class MaterialDatapublic Gate clone()
clone in class MaterialDataCopyright © 2018. All rights reserved.