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 acn
intermediary net/minecraft/class_3808
named net/minecraft/server/dedicated/AbstractPropertiesHandler
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_16849 Lnet/minecraft/class_3808;field_16849:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
    • properties

      protected final Properties properties
      Mappings:
      Namespace Name Mixin selector
      official Y Lacn;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

      public AbstractPropertiesHandler(Properties properties)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacn;<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

      public static Properties loadProperties(Path path)
      Loads a map of properties from the path.
      Mappings:
      Namespace Name Mixin selector
      official b Lacn;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

      public void saveProperties(Path path)
      Saves the properties of this handler to the path.
      Mappings:
      Namespace Name Mixin selector
      official c Lacn;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

      private static <V extends Number> Function<String,V> wrapNumberParser(Function<String,V> parser)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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 Lacn;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

      @Nullable private @Nullable String getStringValue(String key)
      Mappings:
      Namespace Name Mixin selector
      official c Lacn;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

      @Nullable protected <V> V getDeprecated(String key, Function<String,V> stringifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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 Lacn;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 Lacn;b(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Lacn$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 Lacn;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

      protected <V> V get(String key, Function<String,V> parser, V fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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 Lacn;b(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Lacn$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

      protected String getString(String key, String fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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

      @Nullable protected @Nullable String getDeprecatedString(String key)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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

      protected int getInt(String key, int fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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 Lacn;b(Ljava/lang/String;I)Lacn$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

      protected int transformedParseInt(String key, UnaryOperator<Integer> transformer, int fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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

      protected long parseLong(String key, long fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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

      protected boolean parseBoolean(String key, boolean fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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 Lacn;b(Ljava/lang/String;Z)Lacn$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

      @Nullable protected @Nullable Boolean getDeprecatedBoolean(String key)
      Mappings:
      Namespace Name Mixin selector
      official b Lacn;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

      protected Properties copyProperties()
      Mappings:
      Namespace Name Mixin selector
      official a Lacn;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

      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.
      Mappings:
      Namespace Name Mixin selector
      official b Lacn;b(Lgy;Ljava/util/Properties;)Lacn;
      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/util/registry/DynamicRegistryManager;Ljava/util/Properties;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;