Package net.minecraft.server.dedicated
Class PropertyManager<T extends PropertyManager<T>>
- java.lang.Object
-
- net.minecraft.server.dedicated.PropertyManager<T>
-
- Direct Known Subclasses:
ServerProperties
public abstract class PropertyManager<T extends PropertyManager<T>> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PropertyManager.Property<V>
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
private java.util.Properties
properties
-
Constructor Summary
Constructors Constructor Description PropertyManager(java.util.Properties p_i50717_1_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.util.Properties
cloneProperties()
protected static <V> java.util.function.Function<java.lang.String,V>
dispatchNumberOrString(java.util.function.IntFunction<V> p_218964_0_, java.util.function.Function<java.lang.String,V> p_218964_1_)
protected boolean
get(java.lang.String p_218982_1_, boolean p_218982_2_)
protected int
get(java.lang.String p_218968_1_, int p_218968_2_)
protected long
get(java.lang.String p_218967_1_, long p_218967_2_)
protected java.lang.String
get(java.lang.String p_218973_1_, java.lang.String p_218973_2_)
protected <V> V
get(java.lang.String p_218983_1_, java.util.function.Function<java.lang.String,V> p_218983_2_, java.util.function.Function<V,java.lang.String> p_218983_3_, V p_218983_4_)
protected <V> V
get(java.lang.String p_218977_1_, java.util.function.Function<java.lang.String,V> p_218977_2_, java.util.function.UnaryOperator<V> p_218977_3_, java.util.function.Function<V,java.lang.String> p_218977_4_, V p_218977_5_)
protected <V> V
get(java.lang.String p_218979_1_, java.util.function.Function<java.lang.String,V> p_218979_2_, V p_218979_3_)
protected int
get(java.lang.String p_218962_1_, java.util.function.UnaryOperator<java.lang.Integer> p_218962_2_, int p_218962_3_)
protected <V> V
getLegacy(java.lang.String p_218984_1_, java.util.function.Function<java.lang.String,V> p_218984_2_)
protected java.lang.Boolean
getLegacyBoolean(java.lang.String p_218978_1_)
protected java.lang.String
getLegacyString(java.lang.String p_218980_1_)
protected PropertyManager.Property<java.lang.Boolean>
getMutable(java.lang.String p_218961_1_, boolean p_218961_2_)
protected PropertyManager.Property<java.lang.Integer>
getMutable(java.lang.String p_218974_1_, int p_218974_2_)
protected <V> PropertyManager.Property<V>
getMutable(java.lang.String p_218981_1_, java.util.function.Function<java.lang.String,V> p_218981_2_, java.util.function.Function<V,java.lang.String> p_218981_3_, V p_218981_4_)
protected <V> PropertyManager.Property<V>
getMutable(java.lang.String p_218965_1_, java.util.function.Function<java.lang.String,V> p_218965_2_, V p_218965_3_)
private java.lang.String
getStringRaw(java.lang.String p_218976_1_)
static java.util.Properties
loadFromFile(java.nio.file.Path p_218969_0_)
protected abstract T
reload(DynamicRegistries p_241881_1_, java.util.Properties p_241881_2_)
void
store(java.nio.file.Path p_218970_1_)
private static <V extends java.lang.Number>
java.util.function.Function<java.lang.String,V>wrapNumberDeserializer(java.util.function.Function<java.lang.String,V> p_218963_0_)
-
-
-
Method Detail
-
loadFromFile
public static java.util.Properties loadFromFile(java.nio.file.Path p_218969_0_)
-
store
public void store(java.nio.file.Path p_218970_1_)
-
wrapNumberDeserializer
private static <V extends java.lang.Number> java.util.function.Function<java.lang.String,V> wrapNumberDeserializer(java.util.function.Function<java.lang.String,V> p_218963_0_)
-
dispatchNumberOrString
protected static <V> java.util.function.Function<java.lang.String,V> dispatchNumberOrString(java.util.function.IntFunction<V> p_218964_0_, java.util.function.Function<java.lang.String,V> p_218964_1_)
-
getStringRaw
@Nullable private java.lang.String getStringRaw(java.lang.String p_218976_1_)
-
getLegacy
@Nullable protected <V> V getLegacy(java.lang.String p_218984_1_, java.util.function.Function<java.lang.String,V> p_218984_2_)
-
get
protected <V> V get(java.lang.String p_218983_1_, java.util.function.Function<java.lang.String,V> p_218983_2_, java.util.function.Function<V,java.lang.String> p_218983_3_, V p_218983_4_)
-
getMutable
protected <V> PropertyManager.Property<V> getMutable(java.lang.String p_218981_1_, java.util.function.Function<java.lang.String,V> p_218981_2_, java.util.function.Function<V,java.lang.String> p_218981_3_, V p_218981_4_)
-
get
protected <V> V get(java.lang.String p_218977_1_, java.util.function.Function<java.lang.String,V> p_218977_2_, java.util.function.UnaryOperator<V> p_218977_3_, java.util.function.Function<V,java.lang.String> p_218977_4_, V p_218977_5_)
-
get
protected <V> V get(java.lang.String p_218979_1_, java.util.function.Function<java.lang.String,V> p_218979_2_, V p_218979_3_)
-
getMutable
protected <V> PropertyManager.Property<V> getMutable(java.lang.String p_218965_1_, java.util.function.Function<java.lang.String,V> p_218965_2_, V p_218965_3_)
-
get
protected java.lang.String get(java.lang.String p_218973_1_, java.lang.String p_218973_2_)
-
getLegacyString
@Nullable protected java.lang.String getLegacyString(java.lang.String p_218980_1_)
-
get
protected int get(java.lang.String p_218968_1_, int p_218968_2_)
-
getMutable
protected PropertyManager.Property<java.lang.Integer> getMutable(java.lang.String p_218974_1_, int p_218974_2_)
-
get
protected int get(java.lang.String p_218962_1_, java.util.function.UnaryOperator<java.lang.Integer> p_218962_2_, int p_218962_3_)
-
get
protected long get(java.lang.String p_218967_1_, long p_218967_2_)
-
get
protected boolean get(java.lang.String p_218982_1_, boolean p_218982_2_)
-
getMutable
protected PropertyManager.Property<java.lang.Boolean> getMutable(java.lang.String p_218961_1_, boolean p_218961_2_)
-
getLegacyBoolean
@Nullable protected java.lang.Boolean getLegacyBoolean(java.lang.String p_218978_1_)
-
cloneProperties
protected java.util.Properties cloneProperties()
-
reload
protected abstract T reload(DynamicRegistries p_241881_1_, java.util.Properties p_241881_2_)
-
-