/** * 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; }
/** * 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; }
RedstoneWire wireData = (RedstoneWire)data; registerForUndo(block); wireData.setData((byte)(15 - wireData.getData())); powerBlock = true; } else if (material == Material.REDSTONE_BLOCK) {
RedstoneWire wireData = (RedstoneWire)data; context.registerForUndo(block); wireData.setData((byte)(15 - wireData.getData())); powerBlock = true; } else if (material == Material.REDSTONE_BLOCK) {