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 a redstone torch
*/
public class RedstoneTorch extends Torch implements Redstone {
public RedstoneTorch() {
super(Material.REDSTONE_TORCH_ON);
}
public RedstoneTorch(final int type) {
super(type);
}
@@ -32,4 +36,9 @@ public class RedstoneTorch extends Torch implements Redstone {
public boolean isPowered() {
return getItemType() == Material.REDSTONE_TORCH_ON;
}
@Override
public String toString() {
return super.toString() + " " + (isPowered() ? "" : "NOT ") + "POWERED";
}
}