java.lang.Cloneable, Attachable, Directional, Redstonepublic class Lever extends SimpleAttachableMaterialData implements Redstone
| Constructor | Description | 
|---|---|
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 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
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. 
 | 
java.lang.String | 
toString() | 
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetFacingpublic Lever()
@Deprecated public Lever(int type)
type - the raw type idpublic Lever(Material type)
@Deprecated
public Lever(int type,
             byte data)
type - the raw type iddata - the raw data value@Deprecated public Lever(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isPowered()
public void setPowered(boolean isPowered)
isPowered - whether the lever should be powered or notpublic BlockFace getAttachedFace()
getAttachedFace in interface Attachablepublic void setFacingDirection(BlockFace face)
setFacingDirection in interface Directionalface - The facing directionpublic java.lang.String toString()
toString in class SimpleAttachableMaterialDatapublic Lever clone()
clone in class SimpleAttachableMaterialDataCopyright © 2018. All rights reserved.