RedstoneWire MaterialData

This commit is contained in:
Dinnerbone 2011-01-15 20:35:22 +00:00
parent 2e7c22c42b
commit f118739210

View File

@ -0,0 +1,35 @@
package org.bukkit.material;
import org.bukkit.Material;
/**
* Represents redstone wire
*/
public class RedstoneWire extends MaterialData implements Redstone {
public RedstoneWire(final int type) {
super(type);
}
public RedstoneWire(final Material type) {
super(type);
}
public RedstoneWire(final int type, final byte data) {
super(type, data);
}
public RedstoneWire(final Material type, final byte data) {
super(type, data);
}
/**
* Gets the current state of this Material, indicating if it's powered or
* unpowered
*
* @return true if powered, otherwise false
*/
public boolean isPowered() {
return getData() > 0;
}
}