Package net.minecraft.server.dedicated
Class Settings<T extends Settings<T>>
java.lang.Object
net.minecraft.server.dedicated.Settings<T>
- Direct Known Subclasses:
DedicatedServerProperties
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
protected final Properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Properties
dispatchNumberOrString
(IntFunction<V> byId, Function<String, V> byName) protected boolean
protected int
protected long
protected String
protected <V> V
protected <V> V
get
(String key, Function<String, V> serializer, UnaryOperator<V> modifier, Function<V, String> deserializer, V defaultValue) protected <V> V
protected int
get
(String key, UnaryOperator<Integer> modifier, int defaultValue) protected <V> V
protected Boolean
getLegacyBoolean
(String key) protected String
getLegacyString
(String key) protected Settings<T>.MutableValue
<Boolean> getMutable
(String key, boolean defaultValue) protected Settings<T>.MutableValue
<Integer> getMutable
(String key, int defaultValue) protected <V> Settings<T>.MutableValue
<V> getMutable
(String key, Function<String, V> serializer, Function<V, String> deserializer, V defaultValue) protected <V> Settings<T>.MutableValue
<V> getMutable
(String key, Function<String, V> serializer, V defaultValue) private String
getStringRaw
(String key) static Properties
loadFromFile
(Path path) protected abstract T
reload
(RegistryAccess registryAccess, Properties properties) void
wrapNumberDeserializer
(Function<String, V> parseFunc)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
properties
-
-
Constructor Details
-
Settings
-
-
Method Details
-
loadFromFile
-
store
-
wrapNumberDeserializer
-
dispatchNumberOrString
protected static <V> Function<String,V> dispatchNumberOrString(IntFunction<V> byId, Function<String, V> byName) -
getStringRaw
-
getLegacy
-
get
-
getMutable
-
get
-
get
-
getMutable
-
get
-
getLegacyString
-
get
-
getMutable
-
get
-
get
-
get
-
getMutable
-
getLegacyBoolean
-
cloneProperties
-
reload
-