default int getColorMaskFrom(@Nullable IPropagationPart from, int mode) {
        if (from instanceof IInsulatedRedwirePart) {
            return 1 << ((IInsulatedRedwirePart) from).getInsulatedColour();
        }

        if (from instanceof IBundledCablePart && mode == DROPPING) {
            int m = 0;
            byte[] signalIn = ((IBundledCablePart) from).getBundledSignal();
            for (int i = 0; i < 16; i++) {
                if (signalIn[i] == 0) {
                    m |= 1 << i;
                }
            }
            return m;
        }

        if (from instanceof IBundledCablePart && mode == RISING) {
            int m = 0;
            byte[] signalIn = ((IBundledCablePart) from).getBundledSignal();
            for (int i = 0; i < 16; i++) {
                if ((signalIn[i] & 0xFF) > (getSignal()[i] & 0xFF)) {
                    m |= 1 << i;
                }
            }
            return m;
        }

        return 0xFFFF;
    }
Actively calculates current bundled signal based on neighbor emissions
@return new bundled signals
transmission/src/main/java/mrtjp/projectred/transmission/part/IBundledPropagationPart.java