public abstract class PropertyManager<T extends PropertyManager<T>>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
PropertyManager.Property<V> |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Properties |
serverProperties |
Constructor and Description |
---|
PropertyManager(java.util.Properties propertiesIn) |
Modifier and Type | Method and Description |
---|---|
protected static <V> java.util.function.Function<java.lang.String,V> |
enumConverter(java.util.function.IntFunction<V> byId,
java.util.function.Function<java.lang.String,V> byName) |
protected abstract T |
func_212857_b_(java.util.Properties properties) |
protected PropertyManager.Property<java.lang.Boolean> |
func_218961_b(java.lang.String key,
boolean p_218961_2_) |
protected int |
func_218962_a(java.lang.String key,
java.util.function.UnaryOperator<java.lang.Integer> p_218962_2_,
int p_218962_3_) |
protected <V> PropertyManager.Property<V> |
func_218965_b(java.lang.String key,
java.util.function.Function<java.lang.String,V> p_218965_2_,
V p_218965_3_) |
protected java.util.Properties |
func_218966_a() |
protected long |
func_218967_a(java.lang.String key,
long p_218967_2_) |
protected PropertyManager.Property<java.lang.Integer> |
func_218974_b(java.lang.String key,
int p_218974_2_) |
protected <V> V |
func_218977_a(java.lang.String key,
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 java.lang.Boolean |
func_218978_b(java.lang.String key) |
protected <V> V |
func_218979_a(java.lang.String key,
java.util.function.Function<java.lang.String,V> p_218979_2_,
V p_218979_3_) |
protected java.lang.String |
func_218980_a(java.lang.String key) |
protected <V> PropertyManager.Property<V> |
func_218981_b(java.lang.String key,
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> V |
func_218983_a(java.lang.String key,
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 |
func_218984_a(java.lang.String key,
java.util.function.Function<java.lang.String,V> p_218984_2_) |
private java.lang.String |
getStringValue(java.lang.String key) |
static java.util.Properties |
load(java.nio.file.Path pathIn) |
protected boolean |
registerBool(java.lang.String key,
boolean p_218982_2_) |
protected int |
registerInt(java.lang.String key,
int p_218968_2_) |
protected java.lang.String |
registerString(java.lang.String key,
java.lang.String p_218973_2_) |
private static <V extends java.lang.Number> |
safeParseNumber(java.util.function.Function<java.lang.String,V> parseFunc) |
void |
save(java.nio.file.Path pathIn) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.util.Properties serverProperties
public static java.util.Properties load(java.nio.file.Path pathIn)
public void save(java.nio.file.Path pathIn)
private static <V extends java.lang.Number> java.util.function.Function<java.lang.String,V> safeParseNumber(java.util.function.Function<java.lang.String,V> parseFunc)
protected static <V> java.util.function.Function<java.lang.String,V> enumConverter(java.util.function.IntFunction<V> byId, java.util.function.Function<java.lang.String,V> byName)
@Nullable private java.lang.String getStringValue(java.lang.String key)
@Nullable protected <V> V func_218984_a(java.lang.String key, java.util.function.Function<java.lang.String,V> p_218984_2_)
protected <V> V func_218983_a(java.lang.String key, 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> PropertyManager.Property<V> func_218981_b(java.lang.String key, 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> V func_218977_a(java.lang.String key, 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 func_218979_a(java.lang.String key, java.util.function.Function<java.lang.String,V> p_218979_2_, V p_218979_3_)
protected <V> PropertyManager.Property<V> func_218965_b(java.lang.String key, java.util.function.Function<java.lang.String,V> p_218965_2_, V p_218965_3_)
protected java.lang.String registerString(java.lang.String key, java.lang.String p_218973_2_)
@Nullable protected java.lang.String func_218980_a(java.lang.String key)
protected int registerInt(java.lang.String key, int p_218968_2_)
protected PropertyManager.Property<java.lang.Integer> func_218974_b(java.lang.String key, int p_218974_2_)
protected int func_218962_a(java.lang.String key, java.util.function.UnaryOperator<java.lang.Integer> p_218962_2_, int p_218962_3_)
protected long func_218967_a(java.lang.String key, long p_218967_2_)
protected boolean registerBool(java.lang.String key, boolean p_218982_2_)
protected PropertyManager.Property<java.lang.Boolean> func_218961_b(java.lang.String key, boolean p_218961_2_)
@Nullable protected java.lang.Boolean func_218978_b(java.lang.String key)
protected java.util.Properties func_218966_a()
protected abstract T func_212857_b_(java.util.Properties properties)