Package net.minecraft.registry
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$Loaderintermediary net/minecraft/class_7655$class_9158official akm$anamed dataintermediary comp_2245official anamed registryintermediary comp_2246official bnamed loadingErrorsintermediary comp_2247official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryLoader.Entry<T> The field for thedatarecord component.private final Map<RegistryKey<?>, Exception> The field for theloadingErrorsrecord component.private final MutableRegistry<T> The field for theregistryrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLoader(RegistryLoader.Entry<T> entry, MutableRegistry<T> mutableRegistry, Map<RegistryKey<?>, Exception> map) -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidloadFromNetwork(Map<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, RegistryOps.RegistryInfoGetter infoGetter) voidloadFromResource(ResourceManager resourceManager, RegistryOps.RegistryInfoGetter infoGetter) Map<RegistryKey<?>, Exception> Returns the value of theloadingErrorsrecord component.registry()Returns the value of theregistryrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
data
The field for thedatarecord component. -
registry
The field for theregistryrecord component. -
loadingErrors
The field for theloadingErrorsrecord component.
-
-
Constructor Details
-
Loader
Loader(RegistryLoader.Entry<T> entry, MutableRegistry<T> mutableRegistry, Map<RegistryKey<?>, Exception> map)
-
-
Method Details
-
loadFromResource
public void loadFromResource(ResourceManager resourceManager, RegistryOps.RegistryInfoGetter infoGetter) - Mappings:
Namespace Name Mixin selector named loadFromResourceLnet/minecraft/registry/RegistryLoader$Loader;loadFromResource(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;)Vintermediary method_56520Lnet/minecraft/class_7655$class_9158;method_56520(Lnet/minecraft/class_3300;Lnet/minecraft/class_6903$class_7863;)Vofficial aLakm$a;a(Laue;Lakp$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 loadFromNetworkLnet/minecraft/registry/RegistryLoader$Loader;loadFromNetwork(Ljava/util/Map;Lnet/minecraft/resource/ResourceFactory;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;)Vintermediary method_56521Lnet/minecraft/class_7655$class_9158;method_56521(Ljava/util/Map;Lnet/minecraft/class_5912;Lnet/minecraft/class_6903$class_7863;)Vofficial aLakm$a;a(Ljava/util/Map;Lauh;Lakp$c;)V
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
registry
Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-
loadingErrors
Returns the value of theloadingErrorsrecord component.- Returns:
- the value of the
loadingErrorsrecord component
-