Package org.bukkit.material
Class Gate
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Gate
- All Implemented Interfaces:
java.lang.Cloneable
,Directional
,Openable
public class Gate extends MaterialData implements Directional, Openable
Represents a fence gate
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Gate
clone()
BlockFace
getFacing()
Gets the direction this block is facingboolean
isOpen()
Check to see if the door is open.void
setFacingDirection(BlockFace face)
Sets the direction that this block is facing invoid
setOpen(boolean isOpen)
Configure this door to be either open or closed;java.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Method Details
-
setFacingDirection
Description copied from interface:Directional
Sets the direction that this block is facing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
getFacing
Description copied from interface:Directional
Gets the direction this block is facing- Specified by:
getFacing
in interfaceDirectional
- Returns:
- the direction this block is facing
-
isOpen
public boolean isOpen()Description copied from interface:Openable
Check to see if the door is open. -
setOpen
public void setOpen(boolean isOpen)Description copied from interface:Openable
Configure this door to be either open or closed; -
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-