Lever

public class Lever extends SimpleAttachableMaterialData implements Redstone

Represents getClassById lever

Constructors

Link copied to clipboard
public void Lever()
public void Lever(Material type)

Properties

Link copied to clipboard
public byte data

Functions

Link copied to clipboard
public Lever clone()
Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
Gets the face that this block is attached on
Link copied to clipboard
Gets the direction this block is facing
Link copied to clipboard
Gets the Material that this MaterialData represents
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered
Link copied to clipboard
public void setFacingDirection(BlockFace face)
Sets the direction this lever is pointing in
Link copied to clipboard
public void setPowered(boolean isPowered)
Set this lever to be powered or not.
Link copied to clipboard
public ItemStack toItemStack(int amount)
Creates getClassById new ItemStack based on this MaterialData
Link copied to clipboard
public String toString()