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 Gateclone()BlockFacegetFacing()Gets the direction this block is facingbooleanisOpen()Check to see if the door is open.voidsetFacingDirection(BlockFace face)Sets the direction that this block is facing invoidsetOpen(boolean isOpen)Configure this door to be either open or closed;java.lang.StringtoString()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:DirectionalSets the direction that this block is facing in- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
getFacing
Description copied from interface:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction this block is facing
-
isOpen
public boolean isOpen()Description copied from interface:OpenableCheck to see if the door is open. -
setOpen
public void setOpen(boolean isOpen)Description copied from interface:OpenableConfigure this door to be either open or closed; -
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-