Cloneable, Attachable, Directional, RedstoneBlockData.@Deprecated public class Lever extends SimpleAttachableMaterialData implements Redstone
| Constructor | Description | 
|---|---|
| Lever() | Deprecated.  | 
| Lever(Material type) | Deprecated.  | 
| Lever(Material type,
     byte data) | Deprecated. 
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Lever | clone() | Deprecated.  | 
| BlockFace | getAttachedFace() | Deprecated.  Gets the face that this block is attached on | 
| boolean | isPowered() | Deprecated.  Gets the current state of this Material, indicating if it's powered or
 unpowered | 
| void | setFacingDirection(BlockFace face) | Deprecated.  Sets the direction this lever is pointing in | 
| void | setPowered(boolean isPowered) | Deprecated.  Set this lever to be powered or not. | 
| String | toString() | Deprecated.  | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetFacingpublic Lever()
public Lever(Material type)
@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 String toString()
toString in class SimpleAttachableMaterialDatapublic Lever clone()
clone in class SimpleAttachableMaterialDataCopyright © 2020. All rights reserved.