Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.RedstoneWire Class Reference
Inheritance diagram for org.bukkit.material.RedstoneWire:
org.bukkit.material.MaterialData org.bukkit.material.Redstone

Public Member Functions

 RedstoneWire (final int type)
 
 RedstoneWire (final Material type)
 
 RedstoneWire (final int type, final byte data)
 
 RedstoneWire (final Material type, final byte data)
 
boolean isPowered ()
 
String toString ()
 
RedstoneWire 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 ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents redstone wire

Definition at line 8 of file RedstoneWire.java.

Constructor & Destructor Documentation

org.bukkit.material.RedstoneWire.RedstoneWire ( final int  type)
Deprecated:
Magic value

Definition at line 18 of file RedstoneWire.java.

18  {
19  super(type);
20  }
org.bukkit.material.RedstoneWire.RedstoneWire ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 31 of file RedstoneWire.java.

31  {
32  super(type, data);
33  }
org.bukkit.material.RedstoneWire.RedstoneWire ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 40 of file RedstoneWire.java.

40  {
41  super(type, data);
42  }

Member Function Documentation

boolean org.bukkit.material.RedstoneWire.isPowered ( )

Gets the current state of this Material, indicating if it's powered or unpowered

Returns
true if powered, otherwise false

Implements org.bukkit.material.Redstone.

Definition at line 50 of file RedstoneWire.java.

References org.bukkit.material.MaterialData.getData().

50  {
51  return getData() > 0;
52  }

The documentation for this class was generated from the following file: