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<@Nullable V> intDeserializer, Function<String, @Nullable V> stringDeserializer) protected booleanprotected intprotected longprotected Stringprotected <V> Vget(String key, Function<String, @Nullable V> deserializer, Function<V, String> serializer, V defaultValue) protected <V> Vget(String key, Function<String, @Nullable V> deserializer, UnaryOperator<V> validator, Function<V, String> serializer, V defaultValue) protected <V> Vprotected intget(String key, UnaryOperator<Integer> validator, int defaultValue) protected <V> @Nullable Vprotected @Nullable BooleangetLegacyBoolean(String key) protected @Nullable StringgetLegacyString(String key) protected Settings<T>.MutableValue<Boolean> getMutable(String key, boolean defaultValue) protected Settings<T>.MutableValue<Integer> getMutable(String key, int defaultValue) protected Settings<T>.MutableValue<String> getMutable(String key, String defaultValue) protected <V> Settings<T>.MutableValue<V> getMutable(String key, Function<String, @Nullable V> deserializer, Function<V, String> serializer, V defaultValue) protected <V> Settings<T>.MutableValue<V> getMutable(String key, Function<String, V> deserializer, V defaultValue) private @Nullable StringgetStringRaw(String key) static PropertiesloadFromFile(Path file) protected abstract Treload(RegistryAccess registryAccess, Properties properties) voidwrapNumberDeserializer(Function<String, V> inner)
-
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, @Nullable V> dispatchNumberOrString(IntFunction<@Nullable V> intDeserializer, Function<String, @Nullable V> stringDeserializer) -
getStringRaw
-
getLegacy
-
get
-
getMutable
-
get
-
get
-
getMutable
-
get
-
getLegacyString
-
get
-
getMutable
-
getMutable
-
get
-
get
-
get
-
getMutable
-
getLegacyBoolean
-
cloneProperties
-
reload
-