net.minecraft.server.dedicated

public abstract class AbstractPropertiesHandler<T extends AbstractPropertiesHandler<T>>

net.minecraft.server.dedicated.Settings
net.minecraft.class_3808
net.minecraft.server.dedicated.AbstractPropertiesHandler

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_16849
LOGGER
protected final Properties
properties
field_16848
properties

Constructor summary

ModifierConstructor
public (Properties properties)

Method summary

Modifier and TypeMethod
public static Properties
loadFromFile(Path file)
method_16727(Path arg0)
loadProperties(Path path)
public void
store(Path output)
method_16728(Path arg0)
saveProperties(Path path)
private static <V extends Number> Function<String, V>
wrapNumberDeserializer(Function<String, V> inner)
method_16721(Function<String, V> arg0)
wrapNumberParser(Function<String, V> parser)
protected static <V> Function<String, V>
dispatchNumberOrString(IntFunction<V> intDeserializer, Function<String, V> stringDeserializer)
method_16722(IntFunction<V> arg0, Function<String, V> arg1)
combineParser(IntFunction<V> intParser, Function<String, V> fallbackParser)
private String
getStringRaw(String key)
method_16734(String arg0)
getStringValue(String key)
protected <V> V
getLegacy(String key, Function<String, V> deserializer)
method_16742(String arg0, Function<String, V> arg1)
getDeprecated(String key, Function<String, V> stringifier)
protected <V> V
get(String key, Function<String, V> deserializer, Function<V, String> serializer, V defaultValue)
method_16741(String arg0, Function<String, V> arg1, Function<V, String> arg2, V arg3)
get(String key, Function<String, V> parser, Function<V, String> stringifier, V fallback)
protected <V> AbstractPropertiesHandler<T>.PropertyAccessor<V>
getMutable(String key, Function<String, V> deserializer, Function<V, String> serializer, V defaultValue)
method_16724(String arg0, Function<String, V> arg1, Function<V, String> arg2, V arg3)
accessor(String key, Function<String, V> parser, Function<V, String> stringifier, V fallback)
protected <V> V
get(String key, Function<String, V> deserializer, UnaryOperator<V> validator, Function<V, String> serializer, V defaultValue)
method_16735(String arg0, Function<String, V> arg1, UnaryOperator<V> arg2, Function<V, String> arg3, V arg4)
get(String key, Function<String, V> parser, UnaryOperator<V> parsedTransformer, Function<V, String> stringifier, V fallback)
protected <V> V
get(String key, Function<String, V> deserializer, V defaultValue)
method_16737(String arg0, Function<String, V> arg1, V arg2)
get(String key, Function<String, V> parser, V fallback)
protected <V> AbstractPropertiesHandler<T>.PropertyAccessor<V>
getMutable(String key, Function<String, V> deserializer, V defaultValue)
method_16730(String arg0, Function<String, V> arg1, V arg2)
accessor(String key, Function<String, V> parser, V fallback)
protected String
get(String key, String defaultValue)
method_16732(String arg0, String arg1)
getString(String key, String fallback)
protected String
getLegacyString(String key)
method_16738(String arg0)
getDeprecatedString(String key)
protected int
get(String key, int defaultValue)
method_16726(String arg0, int arg1)
getInt(String key, int fallback)
protected AbstractPropertiesHandler<T>.PropertyAccessor<Integer>
getMutable(String key, int defaultValue)
method_16743(String arg0, int arg1)
intAccessor(String key, int fallback)
protected AbstractPropertiesHandler<T>.PropertyAccessor<String>
getMutable(String key, String defaultValue)
method_73604(String arg0, String arg1)
stringAccessor(String key, String fallback)
protected int
get(String key, UnaryOperator<Integer> validator, int defaultValue)
method_16720(String arg0, UnaryOperator<Integer> arg1, int arg2)
transformedParseInt(String key, UnaryOperator<Integer> transformer, int fallback)
protected long
get(String key, long defaultValue)
method_16725(String arg0, long arg1)
parseLong(String key, long fallback)
protected boolean
get(String key, boolean defaultValue)
method_16740(String arg0, boolean arg1)
parseBoolean(String key, boolean fallback)
protected AbstractPropertiesHandler<T>.PropertyAccessor<Boolean>
getMutable(String key, boolean defaultValue)
method_16744(String arg0, boolean arg1)
booleanAccessor(String key, boolean fallback)
protected Boolean
getLegacyBoolean(String key)
method_16736(String arg0)
getDeprecatedBoolean(String key)
protected Properties
cloneProperties()
method_16723()
copyProperties()
protected abstract T
reload(RegistryAccess registryAccess, Properties properties)
method_16739(class_5455 arg0, Properties arg1)
create(DynamicRegistryManager registryManager, Properties properties)
private static Object
lambda$get$2(Function arg0, UnaryOperator arg1, String arg2)
method_16731(Function arg0, UnaryOperator arg1, String arg2)
method_16731(Function arg0, UnaryOperator arg1, String value)
private static Object
lambda$dispatchNumberOrString$1(IntFunction arg0, Function arg1, String arg2)
method_16729(IntFunction arg0, Function arg1, String arg2)
method_16729(IntFunction arg0, Function arg1, String string)
private static Number
lambda$wrapNumberDeserializer$0(Function arg0, String arg1)
method_16733(Function arg0, String arg1)
method_16733(Function arg0, String string)