Package org.bukkit.material
Class Observer
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Observer
-
- All Implemented Interfaces:
Cloneable,Directional,Redstone
public class Observer extends MaterialData implements Directional, Redstone
Represents an observer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Observerclone()BlockFacegetFacing()Gets the direction this block is facingbooleanisPowered()Gets the current state of this Material, indicating if it's powered or unpoweredvoidsetFacingDirection(BlockFace face)Sets the direction that this block is facing inStringtoString()-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Observer
public Observer()
-
Observer
public Observer(BlockFace direction)
-
Observer
public Observer(Material type)
-
Observer
@Deprecated public Observer(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
isPowered
public boolean isPowered()
Description copied from interface:RedstoneGets the current state of this Material, indicating if it's powered or unpowered
-
setFacingDirection
public void setFacingDirection(BlockFace face)
Description copied from interface:DirectionalSets the direction that this block is facing in- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
getFacing
public BlockFace getFacing()
Description copied from interface:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction this block is facing
-
toString
public String toString()
- Overrides:
toStringin classMaterialData
-
clone
public Observer clone()
- Overrides:
clonein classMaterialData
-
-