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(since="1.13",
forRemoval=true)
public class Lever
extends SimpleAttachableMaterialData
implements Redstone
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a lever
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the face that this block is attached onboolean
Deprecated, for removal: This API element is subject to removal in a future version.Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setFacingDirection
(BlockFace face) Deprecated, for removal: This API element is subject to removal in a future version.Sets the direction this lever is pointing invoid
setPowered
(boolean isPowered) Deprecated, for removal: This API element is subject to removal in a future version.Set this lever to be powered or not.toString()
Deprecated, for removal: This API element is subject to removal in a future version.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 Details
-
Lever
public Lever()Deprecated, for removal: This API element is subject to removal in a future version. -
Lever
Deprecated, for removal: This API element is subject to removal in a future version. -
Lever
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPowered
public boolean isPowered()Deprecated, for removal: This API element is subject to removal in a future version.Gets the current state of this Material, indicating if it's powered or unpowered -
setPowered
public void setPowered(boolean isPowered) Deprecated, for removal: This API element is subject to removal in a future version.Set this lever to be powered or not.- Parameters:
isPowered
- whether the lever should be powered or not
-
getAttachedFace
Deprecated, for removal: This API element is subject to removal in a future version.Gets the face that this block is attached on- Specified by:
getAttachedFace
in interfaceAttachable
- Returns:
- BlockFace attached to
-
setFacingDirection
Deprecated, for removal: This API element is subject to removal in a future version.Sets the direction this lever is pointing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classSimpleAttachableMaterialData
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classSimpleAttachableMaterialData
-
BlockData
.