@Override
    public boolean canConnectRedstone(int side) {
        if ((side & 6) == (getSide() & 6)) return false;
        return gateLogicCanConnect(toInternal(absoluteRot(side)));
    }
Mapped inputs and outputs of the gate.
OOOO IIII
High nybble is output.
Low nybble is input
integration/src/main/java/mrtjp/projectred/integration/part/RedstoneGatePart.java