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

    • LOGGER

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

      protected final Properties properties
      Mappings:
      Namespace Name Mixin selector
      named properties Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;properties:Ljava/util/Properties;
      intermediary field_16848 Lnet/minecraft/class_3808;field_16848:Ljava/util/Properties;
      official ac Larc;ac:Ljava/util/Properties;
  • Constructor Details

    • AbstractPropertiesHandler

      public AbstractPropertiesHandler(Properties properties)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;<init>(Ljava/util/Properties;)V
      intermediary <init> Lnet/minecraft/class_3808;<init>(Ljava/util/Properties;)V
      official <init> Larc;<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
      named loadProperties Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;loadProperties(Ljava/nio/file/Path;)Ljava/util/Properties;
      intermediary method_16727 Lnet/minecraft/class_3808;method_16727(Ljava/nio/file/Path;)Ljava/util/Properties;
      official b Larc;b(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
      named saveProperties Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;saveProperties(Ljava/nio/file/Path;)V
      intermediary method_16728 Lnet/minecraft/class_3808;method_16728(Ljava/nio/file/Path;)V
      official c Larc;c(Ljava/nio/file/Path;)V
    • wrapNumberParser

      private static <V extends Number> Function<String,V> wrapNumberParser(Function<String,V> parser)
      Mappings:
      Namespace Name Mixin selector
      named wrapNumberParser Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;wrapNumberParser(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;
      official a Larc;a(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
      named combineParser Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;combineParser(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;
      official a Larc;a(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
      named getStringValue Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getStringValue(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_16734 Lnet/minecraft/class_3808;method_16734(Ljava/lang/String;)Ljava/lang/String;
      official c Larc;c(Ljava/lang/String;)Ljava/lang/String;
    • getDeprecated

      @Nullable protected <V> V getDeprecated(String key, Function<String,V> stringifier)
      Mappings:
      Namespace Name Mixin selector
      named getDeprecated Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getDeprecated(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;
      official a Larc;a(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
      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;
      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;
      official a Larc;a(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
      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;
      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;
      official b Larc;b(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/Object;)Larc$a;
    • 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
      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;
      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;
      official a Larc;a(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
      named get Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;get(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;
      official a Larc;a(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
      named accessor Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;accessor(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;
      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;
      official b Larc;b(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/Object;)Larc$a;
    • getString

      protected String getString(String key, String fallback)
      Mappings:
      Namespace Name Mixin selector
      named getString Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getString(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;
      official a Larc;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    • getDeprecatedString

      @Nullable protected @Nullable String getDeprecatedString(String key)
      Mappings:
      Namespace Name Mixin selector
      named getDeprecatedString Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getDeprecatedString(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_16738 Lnet/minecraft/class_3808;method_16738(Ljava/lang/String;)Ljava/lang/String;
      official a Larc;a(Ljava/lang/String;)Ljava/lang/String;
    • getInt

      protected int getInt(String key, int fallback)
      Mappings:
      Namespace Name Mixin selector
      named getInt Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getInt(Ljava/lang/String;I)I
      intermediary method_16726 Lnet/minecraft/class_3808;method_16726(Ljava/lang/String;I)I
      official a Larc;a(Ljava/lang/String;I)I
    • intAccessor

      protected AbstractPropertiesHandler<T>.PropertyAccessor<Integer> intAccessor(String key, int fallback)
      Mappings:
      Namespace Name Mixin selector
      named intAccessor Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;intAccessor(Ljava/lang/String;I)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;
      intermediary method_16743 Lnet/minecraft/class_3808;method_16743(Ljava/lang/String;I)Lnet/minecraft/class_3808$class_3809;
      official b Larc;b(Ljava/lang/String;I)Larc$a;
    • transformedParseInt

      protected int transformedParseInt(String key, UnaryOperator<Integer> transformer, int fallback)
      Mappings:
      Namespace Name Mixin selector
      named transformedParseInt Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;transformedParseInt(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
      official a Larc;a(Ljava/lang/String;Ljava/util/function/UnaryOperator;I)I
    • parseLong

      protected long parseLong(String key, long fallback)
      Mappings:
      Namespace Name Mixin selector
      named parseLong Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;parseLong(Ljava/lang/String;J)J
      intermediary method_16725 Lnet/minecraft/class_3808;method_16725(Ljava/lang/String;J)J
      official a Larc;a(Ljava/lang/String;J)J
    • parseBoolean

      protected boolean parseBoolean(String key, boolean fallback)
      Mappings:
      Namespace Name Mixin selector
      named parseBoolean Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;parseBoolean(Ljava/lang/String;Z)Z
      intermediary method_16740 Lnet/minecraft/class_3808;method_16740(Ljava/lang/String;Z)Z
      official a Larc;a(Ljava/lang/String;Z)Z
    • booleanAccessor

      protected AbstractPropertiesHandler<T>.PropertyAccessor<Boolean> booleanAccessor(String key, boolean fallback)
      Mappings:
      Namespace Name Mixin selector
      named booleanAccessor Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;booleanAccessor(Ljava/lang/String;Z)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;
      intermediary method_16744 Lnet/minecraft/class_3808;method_16744(Ljava/lang/String;Z)Lnet/minecraft/class_3808$class_3809;
      official b Larc;b(Ljava/lang/String;Z)Larc$a;
    • getDeprecatedBoolean

      @Nullable protected @Nullable Boolean getDeprecatedBoolean(String key)
      Mappings:
      Namespace Name Mixin selector
      named getDeprecatedBoolean Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;getDeprecatedBoolean(Ljava/lang/String;)Ljava/lang/Boolean;
      intermediary method_16736 Lnet/minecraft/class_3808;method_16736(Ljava/lang/String;)Ljava/lang/Boolean;
      official b Larc;b(Ljava/lang/String;)Ljava/lang/Boolean;
    • copyProperties

      protected Properties copyProperties()
      Mappings:
      Namespace Name Mixin selector
      named copyProperties Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;copyProperties()Ljava/util/Properties;
      intermediary method_16723 Lnet/minecraft/class_3808;method_16723()Ljava/util/Properties;
      official a Larc;a()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
      named create Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;create(Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/Properties;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;
      intermediary method_16739 Lnet/minecraft/class_3808;method_16739(Lnet/minecraft/class_5455;Ljava/util/Properties;)Lnet/minecraft/class_3808;
      official b Larc;b(Lke;Ljava/util/Properties;)Larc;