Record Class RegistryLoader.Loader<T>

java.lang.Object
java.lang.Record
net.minecraft.registry.RegistryLoader.Loader<T>
Record Components:
data -
registry -
loadingErrors -
Enclosing class:
RegistryLoader

private static record RegistryLoader.Loader<T>(RegistryLoader.Entry<T> data, MutableRegistry<T> registry, Map<RegistryKey<?>,Exception> loadingErrors) extends Record
Mappings:
Namespace Name
named net/minecraft/registry/RegistryLoader$Loader
intermediary net/minecraft/class_7655$class_9158
official ala$a
named data
intermediary comp_2245
official a
named registry
intermediary comp_2246
official b
named loadingErrors
intermediary comp_2247
official c
  • Field Details

  • Constructor Details

  • Method Details

    • loadFromResource

      public void loadFromResource(ResourceManager resourceManager, RegistryOps.RegistryInfoGetter infoGetter)
      Mappings:
      Namespace Name Mixin selector
      named loadFromResource Lnet/minecraft/registry/RegistryLoader$Loader;loadFromResource(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;)V
      intermediary method_56520 Lnet/minecraft/class_7655$class_9158;method_56520(Lnet/minecraft/class_3300;Lnet/minecraft/class_6903$class_7863;)V
      official a Lala$a;a(Laup;Lald$c;)V
    • loadFromNetwork

      public void loadFromNetwork(Map<RegistryKey<? extends Registry<?>>,List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, RegistryOps.RegistryInfoGetter infoGetter)
      Mappings:
      Namespace Name Mixin selector
      named loadFromNetwork Lnet/minecraft/registry/RegistryLoader$Loader;loadFromNetwork(Ljava/util/Map;Lnet/minecraft/resource/ResourceFactory;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;)V
      intermediary method_56521 Lnet/minecraft/class_7655$class_9158;method_56521(Ljava/util/Map;Lnet/minecraft/class_5912;Lnet/minecraft/class_6903$class_7863;)V
      official a Lala$a;a(Ljava/util/Map;Laus;Lald$c;)V
    • 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.
    • data

      public RegistryLoader.Entry<T> data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component
    • registry

      public MutableRegistry<T> registry()
      Returns the value of the registry record component.
      Returns:
      the value of the registry record component
    • loadingErrors

      public Map<RegistryKey<?>,Exception> loadingErrors()
      Returns the value of the loadingErrors record component.
      Returns:
      the value of the loadingErrors record component