Package net.minecraft.server.dedicated
Class AbstractPropertiesHandler<T extends AbstractPropertiesHandler<T>>
java.lang.Object
net.minecraft.server.dedicated.AbstractPropertiesHandler<T>
- Direct Known Subclasses:
ServerPropertiesHandler
public abstract class AbstractPropertiesHandler<T extends AbstractPropertiesHandler<T>>
extends Object
- Mappings:
Namespace Name official ahi
intermediary net/minecraft/class_3808
named net/minecraft/server/dedicated/AbstractPropertiesHandler
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <V> AbstractPropertiesHandler<T>.PropertyAccessor<V>
protected <V> AbstractPropertiesHandler<T>.PropertyAccessor<V>
protected AbstractPropertiesHandler<T>.PropertyAccessor<Boolean>
booleanAccessor
(String key, boolean fallback) combineParser
(IntFunction<V> intParser, Function<String, V> fallbackParser) protected Properties
protected abstract T
create
(DynamicRegistryManager registryManager, Properties properties) Creates another property handler with the same type as this one from the passed new map of properties.protected <V> V
protected <V> V
get
(String key, Function<String, V> parser, UnaryOperator<V> parsedTransformer, Function<V, String> stringifier, V fallback) protected <V> V
protected <V> V
getDeprecated
(String key, Function<String, V> stringifier) protected int
protected String
getStringValue
(String key) protected AbstractPropertiesHandler<T>.PropertyAccessor<Integer>
intAccessor
(String key, int fallback) static Properties
loadProperties
(Path path) Loads a map of properties from thepath
.protected boolean
parseBoolean
(String key, boolean fallback) protected long
void
saveProperties
(Path path) Saves the properties of this handler to thepath
.protected int
transformedParseInt
(String key, UnaryOperator<Integer> transformer, int fallback) wrapNumberParser
(Function<String, V> parser)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lahi;a:Lorg/slf4j/Logger;
intermediary field_16849
Lnet/minecraft/class_3808;field_16849:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;LOGGER:Lorg/slf4j/Logger;
-
properties
- Mappings:
Namespace Name Mixin selector official Y
Lahi;Y:Ljava/util/Properties;
intermediary field_16848
Lnet/minecraft/class_3808;field_16848:Ljava/util/Properties;
named properties
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;properties:Ljava/util/Properties;
-
-
Constructor Details
-
AbstractPropertiesHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lahi;<init>(Ljava/util/Properties;)V
intermediary <init>
Lnet/minecraft/class_3808;<init>(Ljava/util/Properties;)V
named <init>
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;<init>(Ljava/util/Properties;)V
-
-
Method Details
-
loadProperties
Loads a map of properties from thepath
.- Mappings:
Namespace Name Mixin selector official b
Lahi;b(Ljava/nio/file/Path;)Ljava/util/Properties;
intermediary method_16727
Lnet/minecraft/class_3808;method_16727(Ljava/nio/file/Path;)Ljava/util/Properties;
named loadProperties
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;loadProperties(Ljava/nio/file/Path;)Ljava/util/Properties;
-
saveProperties
Saves the properties of this handler to thepath
.- Mappings:
Namespace Name Mixin selector official c
Lahi;c(Ljava/nio/file/Path;)V
intermediary method_16728
Lnet/minecraft/class_3808;method_16728(Ljava/nio/file/Path;)V
named saveProperties
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;saveProperties(Ljava/nio/file/Path;)V
-
wrapNumberParser
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/util/function/Function;)Ljava/util/function/Function;
intermediary method_16721
Lnet/minecraft/class_3808;method_16721(Ljava/util/function/Function;)Ljava/util/function/Function;
named wrapNumberParser
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;wrapNumberParser(Ljava/util/function/Function;)Ljava/util/function/Function;
-
combineParser
protected static <V> Function<String,V> combineParser(IntFunction<V> intParser, Function<String, V> fallbackParser) - Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/util/function/IntFunction;Ljava/util/function/Function;)Ljava/util/function/Function;
intermediary method_16722
Lnet/minecraft/class_3808;method_16722(Ljava/util/function/IntFunction;Ljava/util/function/Function;)Ljava/util/function/Function;
named combineParser
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;combineParser(Ljava/util/function/IntFunction;Ljava/util/function/Function;)Ljava/util/function/Function;
-
getStringValue
- Mappings:
Namespace Name Mixin selector official c
Lahi;c(Ljava/lang/String;)Ljava/lang/String;
intermediary method_16734
Lnet/minecraft/class_3808;method_16734(Ljava/lang/String;)Ljava/lang/String;
named getStringValue
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getStringValue(Ljava/lang/String;)Ljava/lang/String;
-
getDeprecated
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;Ljava/util/function/Function;)Ljava/lang/Object;
intermediary method_16742
Lnet/minecraft/class_3808;method_16742(Ljava/lang/String;Ljava/util/function/Function;)Ljava/lang/Object;
named getDeprecated
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getDeprecated(Ljava/lang/String;Ljava/util/function/Function;)Ljava/lang/Object;
-
get
protected <V> V get(String key, Function<String, V> parser, Function<V, String> stringifier, V fallback) - Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_16741
Lnet/minecraft/class_3808;method_16741(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
named get
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;get(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
-
accessor
protected <V> AbstractPropertiesHandler<T>.PropertyAccessor<V> accessor(String key, Function<String, V> parser, Function<V, String> stringifier, V fallback) - Mappings:
Namespace Name Mixin selector official b
Lahi;b(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Lahi$a;
intermediary method_16724
Lnet/minecraft/class_3808;method_16724(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Lnet/minecraft/class_3808$class_3809;
named accessor
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;accessor(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;
-
get
protected <V> V get(String key, Function<String, V> parser, UnaryOperator<V> parsedTransformer, Function<V, String> stringifier, V fallback) - Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/UnaryOperator;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_16735
Lnet/minecraft/class_3808;method_16735(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/UnaryOperator;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
named get
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;get(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/UnaryOperator;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
-
get
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_16737
Lnet/minecraft/class_3808;method_16737(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
named get
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;get(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object;
-
accessor
protected <V> AbstractPropertiesHandler<T>.PropertyAccessor<V> accessor(String key, Function<String, V> parser, V fallback) - Mappings:
Namespace Name Mixin selector official b
Lahi;b(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Lahi$a;
intermediary method_16730
Lnet/minecraft/class_3808;method_16730(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Lnet/minecraft/class_3808$class_3809;
named accessor
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;accessor(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;
-
getString
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
intermediary method_16732
Lnet/minecraft/class_3808;method_16732(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
named getString
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
getDeprecatedString
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;)Ljava/lang/String;
intermediary method_16738
Lnet/minecraft/class_3808;method_16738(Ljava/lang/String;)Ljava/lang/String;
named getDeprecatedString
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getDeprecatedString(Ljava/lang/String;)Ljava/lang/String;
-
getInt
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;I)I
intermediary method_16726
Lnet/minecraft/class_3808;method_16726(Ljava/lang/String;I)I
named getInt
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getInt(Ljava/lang/String;I)I
-
intAccessor
protected AbstractPropertiesHandler<T>.PropertyAccessor<Integer> intAccessor(String key, int fallback) - Mappings:
Namespace Name Mixin selector official b
Lahi;b(Ljava/lang/String;I)Lahi$a;
intermediary method_16743
Lnet/minecraft/class_3808;method_16743(Ljava/lang/String;I)Lnet/minecraft/class_3808$class_3809;
named intAccessor
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;intAccessor(Ljava/lang/String;I)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;
-
transformedParseInt
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;Ljava/util/function/UnaryOperator;I)I
intermediary method_16720
Lnet/minecraft/class_3808;method_16720(Ljava/lang/String;Ljava/util/function/UnaryOperator;I)I
named transformedParseInt
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;transformedParseInt(Ljava/lang/String;Ljava/util/function/UnaryOperator;I)I
-
parseLong
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;J)J
intermediary method_16725
Lnet/minecraft/class_3808;method_16725(Ljava/lang/String;J)J
named parseLong
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;parseLong(Ljava/lang/String;J)J
-
parseBoolean
- Mappings:
Namespace Name Mixin selector official a
Lahi;a(Ljava/lang/String;Z)Z
intermediary method_16740
Lnet/minecraft/class_3808;method_16740(Ljava/lang/String;Z)Z
named parseBoolean
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;parseBoolean(Ljava/lang/String;Z)Z
-
booleanAccessor
protected AbstractPropertiesHandler<T>.PropertyAccessor<Boolean> booleanAccessor(String key, boolean fallback) - Mappings:
Namespace Name Mixin selector official b
Lahi;b(Ljava/lang/String;Z)Lahi$a;
intermediary method_16744
Lnet/minecraft/class_3808;method_16744(Ljava/lang/String;Z)Lnet/minecraft/class_3808$class_3809;
named booleanAccessor
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;booleanAccessor(Ljava/lang/String;Z)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;
-
getDeprecatedBoolean
- Mappings:
Namespace Name Mixin selector official b
Lahi;b(Ljava/lang/String;)Ljava/lang/Boolean;
intermediary method_16736
Lnet/minecraft/class_3808;method_16736(Ljava/lang/String;)Ljava/lang/Boolean;
named getDeprecatedBoolean
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getDeprecatedBoolean(Ljava/lang/String;)Ljava/lang/Boolean;
-
copyProperties
- Mappings:
Namespace Name Mixin selector official a
Lahi;a()Ljava/util/Properties;
intermediary method_16723
Lnet/minecraft/class_3808;method_16723()Ljava/util/Properties;
named copyProperties
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;copyProperties()Ljava/util/Properties;
-
create
Creates another property handler with the same type as this one from the passed new map of properties.- Mappings:
Namespace Name Mixin selector official b
Lahi;b(Lhs;Ljava/util/Properties;)Lahi;
intermediary method_16739
Lnet/minecraft/class_3808;method_16739(Lnet/minecraft/class_5455;Ljava/util/Properties;)Lnet/minecraft/class_3808;
named create
Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;create(Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/Properties;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;
-