Package org.bukkit.material
Class Lever
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Lever
- All Implemented Interfaces:
- Cloneable,- Attachable,- Directional,- Redstone
Deprecated.
Represents a lever
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Gets the face that this block is attached onbooleanDeprecated.Gets the current state of this Material, indicating if it's powered or unpoweredvoidsetFacingDirection(BlockFace face) Deprecated.Sets the direction this lever is pointing invoidsetPowered(boolean isPowered) Deprecated.Set this lever to be powered or not.toString()Deprecated.Methods inherited from class org.bukkit.material.SimpleAttachableMaterialDatagetFacingMethods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
Leverpublic Lever()Deprecated.
- 
LeverDeprecated.
- 
LeverDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isPoweredpublic boolean isPowered()Deprecated.Gets the current state of this Material, indicating if it's powered or unpowered
- 
setPoweredpublic void setPowered(boolean isPowered) Deprecated.Set this lever to be powered or not.- Parameters:
- isPowered- whether the lever should be powered or not
 
- 
getAttachedFaceDeprecated.Gets the face that this block is attached on- Specified by:
- getAttachedFacein interface- Attachable
- Returns:
- BlockFace attached to
 
- 
setFacingDirectionDeprecated.Sets the direction this lever is pointing in- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- The facing direction
 
- 
toStringDeprecated.- Overrides:
- toStringin class- SimpleAttachableMaterialData
 
- 
cloneDeprecated.- Overrides:
- clonein class- SimpleAttachableMaterialData
 
 
- 
BlockData.