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 aet$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 Laet$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 Laet$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 Laet$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

      PropertyAccessor(String key, V value, Function<V,String> stringifier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laet$a;<init>(Laet;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>
    • 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
      official a Laet$a;a(Lhn;Ljava/lang/Object;)Laet;
      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;