public int countLoweredRods() { int count = 0; for (WorldLocation c : controls.keySet()) { TileEntityControlRod rod = controls.get(c); if (rod.isActive()) count++; } return count; }
@SideOnly(Side.CLIENT) public int getDisplayColorAtRelativePosition(World world, int x, int y, int z) { TileEntityControlRod rod = this.getControlRodAtRelativePosition(world, x, y, z); if (rod != null) { if (((TileEntityCPU) controller.getTileEntity()).getPower() >= this.getMinPower()) return rod.isActive() ? 0x00ff00 : 0xff0000; else return 0xa0a0a0; } return 0x6a6a6a; }