public class Observer extends MaterialData implements Directional, Redstone
| Constructor and Description | 
|---|
Observer()  | 
Observer(BlockFace direction)  | 
Observer(Material type)  | 
Observer(Material type,
        byte data)
Deprecated. 
 
Magic value 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Observer | 
clone()  | 
BlockFace | 
getFacing()
Gets the direction this block is facing 
 | 
boolean | 
isPowered()
Gets the current state of this Material, indicating if it's powered or
 unpowered 
 | 
void | 
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in 
 | 
String | 
toString()  | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic Observer()
public Observer(BlockFace direction)
public Observer(Material type)
@Deprecated public Observer(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isPowered()
Redstonepublic void setFacingDirection(BlockFace face)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
DirectionalgetFacing in interface Directionalpublic String toString()
toString in class MaterialDatapublic Observer clone()
clone in class MaterialDataCopyright © 2022. All rights reserved.