Record Class DynamicRegistryManager.Entry<T>

java.lang.Object
java.lang.Record
net.minecraft.registry.DynamicRegistryManager.Entry<T>
Record Components:
key -
value -
Enclosing interface:
DynamicRegistryManager

public static record DynamicRegistryManager.Entry<T>(RegistryKey<? extends Registry<T>> key, Registry<T> value) extends Record
Mappings:
Namespace Name
official hr$d
intermediary net/minecraft/class_5455$class_6892
named net/minecraft/registry/DynamicRegistryManager$Entry
official a
intermediary comp_350
named key
official b
intermediary comp_351
named value
  • Field Details

  • Constructor Details

  • Method Details

    • of

      private static <T, R extends Registry<? extends T>> DynamicRegistryManager.Entry<T> of(Map.Entry<? extends RegistryKey<? extends Registry<?>>,R> entry)
      Mappings:
      Namespace Name Mixin selector
      official a Lhr$d;a(Ljava/util/Map$Entry;)Lhr$d;
      intermediary method_40330 Lnet/minecraft/class_5455$class_6892;method_40330(Ljava/util/Map$Entry;)Lnet/minecraft/class_5455$class_6892;
      named of Lnet/minecraft/registry/DynamicRegistryManager$Entry;of(Ljava/util/Map$Entry;)Lnet/minecraft/registry/DynamicRegistryManager$Entry;
    • of

      private static <T> DynamicRegistryManager.Entry<T> of(RegistryKey<? extends Registry<?>> key, Registry<?> value)
      Mappings:
      Namespace Name Mixin selector
      official a Lhr$d;a(Laev;Lhq;)Lhr$d;
      intermediary method_40331 Lnet/minecraft/class_5455$class_6892;method_40331(Lnet/minecraft/class_5321;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5455$class_6892;
      named of Lnet/minecraft/registry/DynamicRegistryManager$Entry;of(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/Registry;)Lnet/minecraft/registry/DynamicRegistryManager$Entry;
    • freeze

      private DynamicRegistryManager.Entry<T> freeze()
      Mappings:
      Namespace Name Mixin selector
      official c Lhr$d;c()Lhr$d;
      intermediary method_40332 Lnet/minecraft/class_5455$class_6892;method_40332()Lnet/minecraft/class_5455$class_6892;
      named freeze Lnet/minecraft/registry/DynamicRegistryManager$Entry;freeze()Lnet/minecraft/registry/DynamicRegistryManager$Entry;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • key

      public RegistryKey<? extends Registry<T>> key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • value

      public Registry<T> value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component