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
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.logging.log4j.Logger
protected Properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Properties
dispatchNumberOrString(IntFunction<V> p_139851_, Function<String,V> p_139852_)
protected boolean
protected int
protected long
protected String
protected <V> V
protected <V> V
get(String p_139827_, Function<String,V> p_139828_, UnaryOperator<V> p_139829_, Function<V,String> p_139830_, V p_139831_)
protected <V> V
protected int
get(String p_139833_, UnaryOperator<Integer> p_139834_, int p_139835_)
protected <V> V
protected Boolean
getLegacyBoolean(String p_139860_)
protected String
getLegacyString(String p_139804_)
protected Settings.MutableValue<Boolean>
getMutable(String p_139874_, boolean p_139875_)
protected Settings.MutableValue<Integer>
getMutable(String p_139862_, int p_139863_)
protected <V> Settings.MutableValue<V>
getMutable(String p_139869_, Function<String,V> p_139870_, Function<V,String> p_139871_, V p_139872_)
protected <V> Settings.MutableValue<V>
getMutable(String p_139865_, Function<String,V> p_139866_, V p_139867_)
private String
getStringRaw(String p_139879_)
static Properties
loadFromFile(Path p_139840_)
protected abstract T
reload(RegistryAccess p_139857_, Properties p_139858_)
void
wrapNumberDeserializer(Function<String,V> p_139842_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
properties
-
-
Constructor Details
-
Settings
-
-
Method Details
-
loadFromFile
-
store
-
wrapNumberDeserializer
-
dispatchNumberOrString
protected static <V> Function<String,V> dispatchNumberOrString(IntFunction<V> p_139851_, Function<String,V> p_139852_) -
getStringRaw
-
getLegacy
-
get
-
getMutable
-
get
-
get
-
getMutable
protected <V> Settings.MutableValue<V> getMutable(String p_139865_, Function<String,V> p_139866_, V p_139867_) -
get
-
getLegacyString
-
get
-
getMutable
-
get
-
get
-
get
-
getMutable
-
getLegacyBoolean
-
cloneProperties
-
reload
-