|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.SimpleAttachableMaterialData org.bukkit.material.Lever
public class Lever
Represents a lever
Constructor Summary | |
---|---|
Lever()
|
|
Lever(int type)
Deprecated. Magic value |
|
Lever(int type,
byte data)
Deprecated. Magic value |
|
Lever(Material type)
|
|
Lever(Material type,
byte data)
Deprecated. Magic value |
Method Summary | |
---|---|
Lever |
clone()
|
BlockFace |
getAttachedFace()
Gets the face that this block is attached on |
boolean |
isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered |
void |
setFacingDirection(BlockFace face)
Sets the direction this lever is pointing in |
void |
setPowered(boolean isPowered)
Set this lever to be powered or not. |
String |
toString()
|
Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData |
---|
getFacing |
Methods inherited from class org.bukkit.material.MaterialData |
---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Lever()
@Deprecated public Lever(int type)
public Lever(Material type)
@Deprecated public Lever(int type, byte data)
@Deprecated public Lever(Material type, byte data)
Method Detail |
---|
public boolean isPowered()
isPowered
in interface Redstone
public void setPowered(boolean isPowered)
isPowered
- whether the lever should be powered or notpublic BlockFace getAttachedFace()
getAttachedFace
in interface Attachable
public void setFacingDirection(BlockFace face)
setFacingDirection
in interface Directional
face
- The facing directionpublic String toString()
toString
in class SimpleAttachableMaterialData
public Lever clone()
clone
in class SimpleAttachableMaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |