Class PropertyManager.Property<V>

  • All Implemented Interfaces:
    java.util.function.Supplier<V>
    Enclosing class:
    PropertyManager<T extends PropertyManager<T>>

    public class PropertyManager.Property<V>
    extends java.lang.Object
    implements java.util.function.Supplier<V>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String key  
      private java.util.function.Function<V,​java.lang.String> serializer  
      private V value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Property​(java.lang.String p_i50880_2_, V p_i50880_3_, java.util.function.Function<V,​java.lang.String> p_i50880_4_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V get()  
      T update​(DynamicRegistries p_244381_1_, V p_244381_2_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • key

        private final java.lang.String key
      • value

        private final V value
      • serializer

        private final java.util.function.Function<V,​java.lang.String> serializer
    • Constructor Detail

      • Property

        private Property​(java.lang.String p_i50880_2_,
                         V p_i50880_3_,
                         java.util.function.Function<V,​java.lang.String> p_i50880_4_)
    • Method Detail

      • get

        public V get()
        Specified by:
        get in interface java.util.function.Supplier<V>