Ton of Material extensions handling the meta-data of blocks.

This commit is contained in:
sunkid
2011-04-02 16:42:12 -07:00
committed by Erik Broes
parent 89f7386e87
commit 55e4fbfd14
31 changed files with 1203 additions and 135 deletions

View File

@@ -7,6 +7,10 @@ import org.bukkit.Material;
* Represents redstone wire
*/
public class RedstoneWire extends MaterialData implements Redstone {
public RedstoneWire() {
super(Material.REDSTONE_WIRE);
}
public RedstoneWire(final int type) {
super(type);
}
@@ -32,4 +36,9 @@ public class RedstoneWire extends MaterialData implements Redstone {
public boolean isPowered() {
return getData() > 0;
}
@Override
public String toString() {
return super.toString() + " " + (isPowered() ? "" : "NOT ") + "POWERED";
}
}