@Override public void readNetworkComponent(DataReader dr) { boolean isNumber = dr.readBoolean(); if (isNumber) { textBox.setNumber(dr.readData(DataBitHelper.MENU_REDSTONE_ANALOG)); } else { int type = dr.readData(DataBitHelper.MENU_REDSTONE_OUTPUT_TYPE); radioButtons.setSelectedOption(type); } }
@Override public void readNetworkComponent(DataReader dr) { int id = dr.readData(DataBitHelper.CONTAINER_TYPE); checked[id] = dr.readBoolean(); }
@Override public void readData(DataReader dr) { textBox.setNumber(dr.readData(DataBitHelper.MENU_REDSTONE_ANALOG)); radioButtons.setSelectedOption(dr.readData(DataBitHelper.MENU_REDSTONE_OUTPUT_TYPE)); }
@Override public void readData(DataReader dr) { for (int i = 0; i < checked.length; i++) { checked[i] = dr.readBoolean(); } }