public class Observer extends MaterialData implements Directional, Redstone
Constructor and Description |
---|
Observer() |
Observer(BlockFace direction) |
Observer(int type)
Deprecated.
Magic value
|
Observer(int type,
byte data)
Deprecated.
Magic value
|
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, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Observer()
public Observer(BlockFace direction)
@Deprecated public Observer(int type)
type
- the raw type idpublic Observer(Material type)
@Deprecated public Observer(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Observer(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isPowered()
Redstone
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public String toString()
toString
in class MaterialData
public Observer clone()
clone
in class MaterialData
Copyright © 2021. All rights reserved.