Cloneable
, Directional
, Openable
public class Gate extends MaterialData implements Directional, Openable
Constructor | Description |
---|---|
Gate() |
|
Gate(byte data) |
|
Gate(Material type,
byte data) |
Deprecated.
Magic value
|
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;
|
String |
toString() |
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
public Gate()
@Deprecated public Gate(Material type, byte data)
type
- the typedata
- the raw data valuepublic Gate(byte data)
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public boolean isOpen()
Openable
public void setOpen(boolean isOpen)
Openable
public String toString()
toString
in class MaterialData
public Gate clone()
clone
in class MaterialData
Copyright © 2020. All rights reserved.