@Override public void receiveSyncData(int index, int value) { if (index == 0) reactor.conversionUnit = (double) value / 100D; // else if (index == 1) reactor.reactionTemperature = value; // else if (index == 2) reactor.maxReactTemperature = value; // else if (index == 3) reactor.fieldCharge = value; // else if (index == 4) reactor.energySaturation = value; // else if (index == 5) reactor.maxEnergySaturation = value; // else if (index == 6) reactor.convertedFuel = value; // else if (index == 7) reactor.maxFieldCharge = value; else if (index == 8) reactor.tempDrainFactor = value / 1000D; else if (index == 9) reactor.generationRate = value; else if (index == 10) reactor.fieldDrain = value; else if (index == 11) reactor.fuelUseRate = value / 1000000D; if (index == 20) reactor.processButtonPress(value); if (index == 99) { Iterator i = inventorySlots.iterator(); while (i.hasNext()) { Object o = i.next(); if (o instanceof SlotExtract || o instanceof SlotInsert) i.remove(); } } else if (index == 98) { addSlotToContainer(new SlotInsert(ioSlots, 0, 15, 140, reactor)); addSlotToContainer(new SlotExtract(ioSlots, 1, 217, 140)); } }