Spaces:
Build error
Build error
File size: 777 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
package net.minecraft.server.dedicated;
import java.nio.file.Path;
import java.util.function.UnaryOperator;
public class DedicatedServerSettings {
private final Path source;
private DedicatedServerProperties properties;
public DedicatedServerSettings(Path p_180932_) {
this.source = p_180932_;
this.properties = DedicatedServerProperties.fromFile(p_180932_);
}
public DedicatedServerProperties getProperties() {
return this.properties;
}
public void forceSave() {
this.properties.store(this.source);
}
public DedicatedServerSettings update(UnaryOperator<DedicatedServerProperties> p_139779_) {
(this.properties = p_139779_.apply(this.properties)).store(this.source);
return this;
}
} |