Package net.minecraft.server.dedicated
Class PropertyManager<T extends PropertyManager<T>>
java.lang.Object
net.minecraft.server.dedicated.PropertyManager<T>
- Direct Known Subclasses:
ServerProperties
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
private final Properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Properties
dispatchNumberOrString
(IntFunction<V> p_218964_0_, Function<String, V> p_218964_1_) protected boolean
protected int
protected long
protected String
protected <V> V
get
(String p_218983_1_, Function<String, V> p_218983_2_, Function<V, String> p_218983_3_, V p_218983_4_) protected <V> V
get
(String p_218977_1_, Function<String, V> p_218977_2_, UnaryOperator<V> p_218977_3_, Function<V, String> p_218977_4_, V p_218977_5_) protected <V> V
protected int
get
(String p_218962_1_, UnaryOperator<Integer> p_218962_2_, int p_218962_3_) protected <V> V
protected Boolean
getLegacyBoolean
(String p_218978_1_) protected String
getLegacyString
(String p_218980_1_) protected PropertyManager<T>.Property<Boolean>
getMutable
(String p_218961_1_, boolean p_218961_2_) protected PropertyManager<T>.Property<Integer>
getMutable
(String p_218974_1_, int p_218974_2_) protected <V> PropertyManager<T>.Property<V>
getMutable
(String p_218981_1_, Function<String, V> p_218981_2_, Function<V, String> p_218981_3_, V p_218981_4_) protected <V> PropertyManager<T>.Property<V>
getMutable
(String p_218965_1_, Function<String, V> p_218965_2_, V p_218965_3_) private String
getStringRaw
(String p_218976_1_) static Properties
loadFromFile
(Path p_218969_0_) protected abstract T
reload
(DynamicRegistries p_241881_1_, Properties p_241881_2_) void
wrapNumberDeserializer
(Function<String, V> p_218963_0_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
properties
-
-
Constructor Details
-
PropertyManager
-
-
Method Details
-
loadFromFile
-
store
-
wrapNumberDeserializer
-
dispatchNumberOrString
protected static <V> Function<String,V> dispatchNumberOrString(IntFunction<V> p_218964_0_, Function<String, V> p_218964_1_) -
getStringRaw
-
getLegacy
-
get
-
getMutable
-
get
-
get
-
getMutable
-
get
-
getLegacyString
-
get
-
getMutable
-
get
-
get
-
get
-
getMutable
-
getLegacyBoolean
-
cloneProperties
-
reload
-