use of logisticspipes.network.IReadListObject in project LogisticsPipes by RS485.
the class UpdateStatusEntries method readData.
@Override
public void readData(LPDataInput input) {
windowID = input.readInt();
status = input.readArrayList(new IReadListObject<StatusEntry>() {
@Override
public StatusEntry readObject(LPDataInput input) {
StatusEntry status = new StatusEntry();
status.name = input.readUTF();
if (input.readBoolean()) {
status.subEntry = input.readArrayList(this);
}
return status;
}
});
}
Aggregations