![]() |
Bukkit
1.4.7-R1.0
|
Represents a lever. More...
Inheritance diagram for org.bukkit.material.Lever:
Collaboration diagram for org.bukkit.material.Lever:Public Member Functions | |
| Lever () | |
| Lever (final int type) | |
| Lever (final Material type) | |
| Lever (final int type, final byte data) | |
| Lever (final Material type, final byte data) | |
| boolean | isPowered () |
| Gets the current state of this Material, indicating if it's powered or unpowered. | |
| void | setPowered (boolean isPowered) |
| Set this lever to be powered or not. | |
| BlockFace | getAttachedFace () |
| Gets the face that this block is attached on. | |
| void | setFacingDirection (BlockFace face) |
| Sets the direction this lever is pointing in. | |
| String | toString () |
| Lever | clone () |
Public Member Functions inherited from org.bukkit.material.SimpleAttachableMaterialData | |
| SimpleAttachableMaterialData (int type) | |
| SimpleAttachableMaterialData (int type, BlockFace direction) | |
| SimpleAttachableMaterialData (Material type, BlockFace direction) | |
| SimpleAttachableMaterialData (Material type) | |
| SimpleAttachableMaterialData (int type, byte data) | |
| SimpleAttachableMaterialData (Material type, byte data) | |
| BlockFace | getFacing () |
| String | toString () |
| SimpleAttachableMaterialData | clone () |
Public Member Functions inherited from org.bukkit.material.MaterialData | |
| MaterialData (final int type) | |
| MaterialData (final Material type) | |
| MaterialData (final int type, final byte data) | |
| MaterialData (final Material type, final byte data) | |
| byte | getData () |
| Gets the raw data in this material. | |
| void | setData (byte data) |
| Sets the raw data of this material. | |
| Material | getItemType () |
| Gets the Material that this MaterialData represents. | |
| int | getItemTypeId () |
| Gets the Material Id that this MaterialData represents. | |
| ItemStack | toItemStack () |
| Creates a new ItemStack based on this MaterialData. | |
| ItemStack | toItemStack (int amount) |
| Creates a new ItemStack based on this MaterialData. | |
| String | toString () |
| int | hashCode () |
| boolean | equals (Object obj) |
| MaterialData | clone () |
Public Member Functions inherited from org.bukkit.material.Attachable | |
| BlockFace | getAttachedFace () |
| Gets the face that this block is attached on. | |
Public Member Functions inherited from org.bukkit.material.Directional | |
| void | setFacingDirection (BlockFace face) |
| Sets the direction that this block is facing in. | |
| BlockFace | getFacing () |
| Gets the direction this block is facing. | |
Public Member Functions inherited from org.bukkit.material.Redstone | |
| boolean | isPowered () |
| Gets the current state of this Material, indicating if it's powered or unpowered. | |
Represents a lever.
Definition at line 9 of file Lever.java.
| org.bukkit.material.Lever.Lever | ( | ) |
Definition at line 10 of file Lever.java.
References org.bukkit.Material.LEVER.
| org.bukkit.material.Lever.Lever | ( | final int | type | ) |
Definition at line 14 of file Lever.java.
| org.bukkit.material.Lever.Lever | ( | final Material | type | ) |
Definition at line 18 of file Lever.java.
| org.bukkit.material.Lever.Lever | ( | final int | type, |
| final byte | data | ||
| ) |
Definition at line 22 of file Lever.java.
| org.bukkit.material.Lever.Lever | ( | final Material | type, |
| final byte | data | ||
| ) |
Definition at line 26 of file Lever.java.
| Lever org.bukkit.material.Lever.clone | ( | ) |
Definition at line 142 of file Lever.java.
References org.bukkit.material.Lever.clone().
Referenced by org.bukkit.material.Lever.clone().
| BlockFace org.bukkit.material.Lever.getAttachedFace | ( | ) |
Gets the face that this block is attached on.
Definition at line 54 of file Lever.java.
References org.bukkit.block.BlockFace.DOWN, org.bukkit.block.BlockFace.EAST, org.bukkit.material.MaterialData.getData(), org.bukkit.block.BlockFace.NORTH, org.bukkit.block.BlockFace.SOUTH, org.bukkit.block.BlockFace.UP, and org.bukkit.block.BlockFace.WEST.
Referenced by org.bukkit.material.Lever.setFacingDirection().
| boolean org.bukkit.material.Lever.isPowered | ( | ) |
Gets the current state of this Material, indicating if it's powered or unpowered.
Definition at line 36 of file Lever.java.
References org.bukkit.material.MaterialData.getData().
Referenced by org.bukkit.material.Lever.toString().
| void org.bukkit.material.Lever.setFacingDirection | ( | BlockFace | face | ) |
Sets the direction this lever is pointing in.
Definition at line 86 of file Lever.java.
References org.bukkit.block.BlockFace.DOWN, org.bukkit.material.Lever.getAttachedFace(), org.bukkit.material.MaterialData.getData(), org.bukkit.material.MaterialData.setData(), and org.bukkit.block.BlockFace.UP.
| void org.bukkit.material.Lever.setPowered | ( | boolean | isPowered | ) |
Set this lever to be powered or not.
| isPowered | whether the lever should be powered or not |
Definition at line 45 of file Lever.java.
References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().
| String org.bukkit.material.Lever.toString | ( | ) |
Definition at line 137 of file Lever.java.
References org.bukkit.material.SimpleAttachableMaterialData.getFacing(), and org.bukkit.material.Lever.isPowered().