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.Loggerprotected final Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesdispatchNumberOrString(IntFunction<V> byId, Function<String, V> byName) protected booleanprotected intprotected longprotected Stringprotected <V> Vprotected <V> Vget(String key, Function<String, V> serializer, UnaryOperator<V> modifier, Function<V, String> deserializer, V defaultValue) protected <V> Vprotected intget(String key, UnaryOperator<Integer> modifier, int defaultValue) protected <V> Vprotected BooleangetLegacyBoolean(String key) protected StringgetLegacyString(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 StringgetStringRaw(String key) static PropertiesloadFromFile(Path path) protected abstract Treload(RegistryAccess registryAccess, Properties properties) voidwrapNumberDeserializer(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
-