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> pById, Function<String, V> pByName) protected booleanprotected intprotected longprotected Stringprotected <V> Vprotected <V> Vget(String pKey, Function<String, V> pSerializer, UnaryOperator<V> pModifier, Function<V, String> pDeserializer, V pDefaultValue) protected <V> Vprotected intget(String pKey, UnaryOperator<Integer> pModifier, int pDefaultValue) protected <V> Vprotected BooleangetLegacyBoolean(String pKey) protected StringgetLegacyString(String pKey) protected Settings<T>.MutableValue<Boolean> getMutable(String pKey, boolean pDefaultValue) protected Settings<T>.MutableValue<Integer> getMutable(String pKey, int pDefaultValue) protected Settings<T>.MutableValue<String> getMutable(String pKey, String pDefaultValue) protected <V> Settings<T>.MutableValue<V> getMutable(String pKey, Function<String, V> pSerializer, Function<V, String> pDeserializer, V pDefaultValue) protected <V> Settings<T>.MutableValue<V> getMutable(String pKey, Function<String, V> pSerializer, V pDefaultValue) private StringgetStringRaw(String pKey) static PropertiesloadFromFile(Path pPath) protected abstract Treload(RegistryAccess pRegistryAccess, Properties pProperties) voidwrapNumberDeserializer(Function<String, V> pParseFunc)
-
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> pById, Function<String, V> pByName) -
getStringRaw
-
getLegacy
-
get
-
getMutable
-
get
-
get
-
getMutable
-
get
-
getLegacyString
-
get
-
getMutable
-
getMutable
-
get
-
get
-
get
-
getMutable
-
getLegacyBoolean
-
cloneProperties
-
reload
-