public Candidate(NbtCompound tag) { this.info = new WorkerInfo(tag.getCompound("info")); this.type = Main.instance.workerTypeRegistry.getElement(tag.getInt("type")); this.endAvailabilityTime = tag.getDouble("endAvailabilityTime"); }
public void readFromNbt(NbtCompound tag) { this.lastPayTime = tag.getDouble("lastPayTime"); }
public void readFromNbt(NbtCompound tag) { this._time = tag.getDouble("time"); this.multiplyerIndex = Mathf.Clamp(tag.getInt("multiplyerIndex"), 0, this._timeMultipliers.Length - 1); }