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>
  • Field Details

    • key

      private final String key
    • value

      private final V value
    • stringifier

      private final Function<V,​String> stringifier
  • Constructor Details

  • Method Details

    • get

      public V get()
      Specified by:
      get in interface Supplier<V>
    • 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.