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> pById, Function<String, V> pByName) protected boolean
protected int
protected long
protected String
protected <V> V
protected <V> V
get
(String pKey, Function<String, V> pSerializer, UnaryOperator<V> pModifier, Function<V, String> pDeserializer, V pDefaultValue) protected <V> V
protected int
get
(String pKey, UnaryOperator<Integer> pModifier, int pDefaultValue) protected <V> V
protected Boolean
getLegacyBoolean
(String pKey) protected String
getLegacyString
(String pKey) protected Settings<T>.MutableValue
<Boolean> getMutable
(String pKey, boolean pDefaultValue) protected Settings<T>.MutableValue
<Integer> getMutable
(String pKey, int 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 String
getStringRaw
(String pKey) static Properties
loadFromFile
(Path pPath) protected abstract T
reload
(RegistryAccess pRegistryAccess, Properties pProperties) void
wrapNumberDeserializer
(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
-
get
-
get
-
get
-
getMutable
-
getLegacyBoolean
-
cloneProperties
-
reload
-