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
official aaa$a
intermediary net/minecraft/class_3808$class_3809
named net/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor
  • Field Details

    • key

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

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

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

    • PropertyAccessor

      private PropertyAccessor​(String key, V value, Function<V,​String> stringifier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laaa$a;<init>(Laaa;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
      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
  • Method Details

    • get

      public V get()
      Specified by:
      get in interface Supplier<V>
      Mappings:
      Namespace Name Mixin selector
      official get Laaa$a;get()Ljava/lang/Object;
      intermediary get Lnet/minecraft/class_3808$class_3809;get()Ljava/lang/Object;
      named get Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;get()Ljava/lang/Object;
    • set

      public T set​(DynamicRegistryManager dynamicRegistryManager, V v)
      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
      official a Laaa$a;a(Lgo;Ljava/lang/Object;)Laaa;
      intermediary method_16745 Lnet/minecraft/class_3808$class_3809;method_16745(Lnet/minecraft/class_5455;Ljava/lang/Object;)Lnet/minecraft/class_3808;
      named set Lnet/minecraft/server/dedicated/AbstractPropertiesHandler$PropertyAccessor;set(Lnet/minecraft/util/registry/DynamicRegistryManager;Ljava/lang/Object;)Lnet/minecraft/server/dedicated/AbstractPropertiesHandler;