if(te instanceof TileHyperCube) {
TileHyperCube hc = (TileHyperCube) te;
SubChannel[] vals = SubChannel.values();
for (int i = 0; i < vals.length; i++) {
SubChannel sc = vals[i];
IoMode mode = message.modes.get(i);
hc.setModeForChannel(sc, mode);
}
hc.setChannel(message.selectedChannel);