Search in sources :

Example 1 with IReadListObject

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;
        }
    });
}
Also used : LPDataInput(network.rs485.logisticspipes.util.LPDataInput) StatusEntry(logisticspipes.pipes.basic.debug.StatusEntry) IReadListObject(logisticspipes.network.IReadListObject)

Aggregations

IReadListObject (logisticspipes.network.IReadListObject)1 StatusEntry (logisticspipes.pipes.basic.debug.StatusEntry)1 LPDataInput (network.rs485.logisticspipes.util.LPDataInput)1