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 public class Lever extends SimpleAttachableMaterialData implements Redstone
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.Represents a lever
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Lever
clone()
Deprecated.BlockFace
getAttachedFace()
Deprecated.Gets the face that this block is attached onboolean
isPowered()
Deprecated.Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setFacingDirection(BlockFace face)
Deprecated.Sets the direction this lever is pointing invoid
setPowered(boolean isPowered)
Deprecated.Set this lever to be powered or not.String
toString()
Deprecated.-
Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData
getFacing
-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Lever
public Lever()
Deprecated.
-
Lever
public Lever(Material type)
Deprecated.
-
Lever
@Deprecated public Lever(Material type, byte data)
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Detail
-
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
public BlockFace getAttachedFace()
Deprecated.Gets the face that this block is attached on- Specified by:
getAttachedFace
in interfaceAttachable
- Returns:
- BlockFace attached to
-
setFacingDirection
public void setFacingDirection(BlockFace face)
Deprecated.Sets the direction this lever is pointing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classSimpleAttachableMaterialData
-
clone
public Lever clone()
Deprecated.- Overrides:
clone
in classSimpleAttachableMaterialData
-
-