public void save(CompoundTag tag) {
        tag.putString("simulation", PRFabricationEngine.instance.serializeSimulation(simulation));
        for (int i = 0; i < 4; i++) {
            tag.putShort("in" + i, inputs[i]);
            tag.putShort("out" + i, outputs[i]);
        }
        tag.putLong("systemTime", systemTime);
    }
Outputs from the simulation indexed by rotation (0-3).
fabrication/src/main/java/mrtjp/projectred/fabrication/engine/ICSimulationContainer.java