Cloneable, Directional, Openable@Deprecated public class Gate extends MaterialData implements Directional, Openable
BlockData.| Constructor | Description | 
|---|---|
| Gate() | Deprecated. | 
| Gate(byte data) | Deprecated. | 
| Gate(Material type,
    byte data) | Deprecated.
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Gate | clone() | Deprecated. | 
| BlockFace | getFacing() | Deprecated. Gets the direction this block is facing | 
| 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 | setOpen(boolean isOpen) | Deprecated. Configure this door to be either open or closed; | 
| String | toString() | Deprecated. | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic Gate()
@Deprecated public Gate(Material type, byte data)
type - the typedata - the raw data valuepublic 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 String toString()
toString in class MaterialDatapublic Gate clone()
clone in class MaterialDataCopyright © 2020. All rights reserved.