public class Observer extends MaterialData implements Directional, Redstone
构造器和说明 |
---|
Observer() |
Observer(BlockFace direction) |
Observer(int type)
已过时。
Magic value
|
Observer(int type,
byte data)
已过时。
Magic value
|
Observer(Material type) |
Observer(Material type,
byte data)
已过时。
Magic value
|
限定符和类型 | 方法和说明 |
---|---|
Observer |
clone() |
BlockFace |
getFacing()
获取这个方块的朝向.
|
boolean |
isPowered()
这个物品有没有充能.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
java.lang.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
原文:Gets the current state of this Material, indicating if it's powered or unpowered
public void setFacingDirection(BlockFace face)
Directional
原文:Sets the direction that this block is facing in
setFacingDirection
在接口中 Directional
face
- 这个方块的朝向public BlockFace getFacing()
Directional
原文:Gets the direction this block is facing
getFacing
在接口中 Directional
public java.lang.String toString()
toString
在类中 MaterialData
public Observer clone()
clone
在类中 MaterialData