@Override
    public void read(MCDataInput in, int key) {
        switch (key) {
            case STATE_PACKET:
                gateState = in.readByte();
                break;
            default:
                super.read(in, key);
        }
    }
Mapped inputs and outputs of the gate.
OOOO IIII
High nybble is output.
Low nybble is input
fabrication/src/main/java/mrtjp/projectred/fabrication/engine/gates/RedstoneGateTile.java