@Override
    public int strongPowerLevel(int side) {
        if ((side & 6) == (getSide() & 6)) return 0;
        int ir = toInternal(absoluteRot(side));

        return (outputMask(shape()) & 1 << ir) != 0 ? getOutput(ir) : 0;
    }
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