Class AbstractPropertiesHandler.PropertyAccessor<V>

java.lang.Object
net.minecraft.server.dedicated.AbstractPropertiesHandler.PropertyAccessor<V>
All Implemented Interfaces:
Supplier<V>
Enclosing class:
AbstractPropertiesHandler<T extends AbstractPropertiesHandler<T>>

public class AbstractPropertiesHandler.PropertyAccessor<V> extends Object implements Supplier<V>
Mappings:
Namespace Name
named net/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor
intermediary net/minecraft/class_3808$class_3809
official apr$a
  • Field Details

    • key

      private final String key
      Mappings:
      Namespace Name Mixin selector
      named key Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;key:Ljava/lang/String;
      intermediary field_16852 Lnet/minecraft/class_3808$class_3809;field_16852:Ljava/lang/String;
      official b Lapr$a;b:Ljava/lang/String;
    • value

      private final V value
      Mappings:
      Namespace Name Mixin selector
      named value Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;value:Ljava/lang/Object;
      intermediary field_16850 Lnet/minecraft/class_3808$class_3809;field_16850:Ljava/lang/Object;
      official c Lapr$a;c:Ljava/lang/Object;
    • stringifier

      private final Function<V,String> stringifier
      Mappings:
      Namespace Name Mixin selector
      named stringifier Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;stringifier:Ljava/util/function/Function;
      intermediary field_16851 Lnet/minecraft/class_3808$class_3809;field_16851:Ljava/util/function/Function;
      official d Lapr$a;d:Ljava/util/function/Function;
  • Constructor Details

    • PropertyAccessor

      PropertyAccessor(String key, V value, Function<V,String> stringifier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;<init>(Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;Ljava/lang/String;Ljava/lang/Object;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_3808$class_3809;<init>(Lnet/minecraft/class_3808;Ljava/lang/String;Ljava/lang/Object;Ljava/util/function/Function;)V
      official <init> Lapr$a;<init>(Lapr;Ljava/lang/String;Ljava/lang/Object;Ljava/util/function/Function;)V
  • Method Details

    • get

      public V get()
      Specified by:
      get in interface Supplier<V>
    • set

      public T set(DynamicRegistryManager registryManager, V value)
      Returns a new property handler with another map of property in which the property handled by this accessor is updated.

      This method does not mutate the original property where this accessor is from.

      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;set(Lnet/minecraft/registry/DynamicRegistryManager;Ljava/lang/Object;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;
      intermediary method_16745 Lnet/minecraft/class_3808$class_3809;method_16745(Lnet/minecraft/class_5455;Ljava/lang/Object;)Lnet/minecraft/class_3808;
      official a Lapr$a;a(Lka;Ljava/lang/Object;)Lapr;