@Override public byte getRedstonePower(ForgeDirection side) { byte[] b = device.getBundledOutput(side); if (b == null) return 0; return b[color.ordinal()]; }
@Override public void setRedstonePower(ForgeDirection side, byte power) { byte[] b = device.getBundledPower(side); if (b == null) b = new byte[16]; b[color.ordinal()] = power; device.setBundledPower(side, b); }