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 Summary
Constructors -
Method Summary
Modifier 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.SimpleAttachableMaterialData
getFacingMethods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Lever
public Lever()Deprecated. -
Lever
Deprecated. -
Lever
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Details
-
isPowered
public boolean isPowered()Deprecated.Gets the current state of this Material, indicating if it's powered or unpowered -
setPowered
public void setPowered(boolean isPowered) Deprecated.Set this lever to be powered or not.- Parameters:
isPowered- whether the lever should be powered or not
-
getAttachedFace
Deprecated.Gets the face that this block is attached on- Specified by:
getAttachedFacein interfaceAttachable- Returns:
- BlockFace attached to
-
setFacingDirection
Deprecated.Sets the direction this lever is pointing in- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
toString
Deprecated.- Overrides:
toStringin classSimpleAttachableMaterialData
-
clone
Deprecated.- Overrides:
clonein classSimpleAttachableMaterialData
-
BlockData.