Package net.minecraft.registry
Record Class RegistryBuilder.Registries
java.lang.Object
java.lang.Record
net.minecraft.registry.RegistryBuilder.Registries
- Record Components:
owner-lookup-registries-registeredValues-errors-
- Enclosing class:
RegistryBuilder
private static record RegistryBuilder.Registries(RegistryBuilder.AnyOwner owner, RegistryBuilder.StandAloneEntryCreatingLookup lookup, Map<Identifier,RegistryEntryLookup<?>> registries, Map<RegistryKey<?>,RegistryBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors)
extends Record
- Mappings:
Namespace Name official hu$aintermediary net/minecraft/class_7877$class_7878named net/minecraft/registry/RegistryBuilder$Registriesofficial aintermediary comp_1135named ownerofficial bintermediary comp_1136named lookupofficial cintermediary comp_1137named registriesofficial dintermediary comp_1138named registeredValuesofficial eintermediary comp_1139named errors
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RuntimeException>The field for theerrorsrecord component.private final RegistryBuilder.StandAloneEntryCreatingLookupThe field for thelookuprecord component.private final RegistryBuilder.AnyOwnerThe field for theownerrecord component.private final Map<RegistryKey<?>,RegistryBuilder.RegisteredValue<?>> The field for theregisteredValuesrecord component.private final Map<Identifier,RegistryEntryLookup<?>> The field for theregistriesrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegistries(RegistryBuilder.AnyOwner anyOwner, RegistryBuilder.StandAloneEntryCreatingLookup standAloneEntryCreatingLookup, Map<Identifier, RegistryEntryLookup<?>> map, Map<RegistryKey<?>, RegistryBuilder.RegisteredValue<?>> map2, List<RuntimeException> list) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOwner(RegistryEntryOwner<?> owner) <T> Registerable<T>final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.lookup()Returns the value of thelookuprecord component.static RegistryBuilder.Registriesof(DynamicRegistryManager dynamicRegistryManager, Stream<RegistryKey<? extends Registry<?>>> registryRefs) owner()Returns the value of theownerrecord component.Returns the value of theregisteredValuesrecord component.Returns the value of theregistriesrecord component.voidvoidfinal StringtoString()Returns a string representation of this record class.void
-
Field Details
-
owner
The field for theownerrecord component. -
lookup
The field for thelookuprecord component. -
registries
The field for theregistriesrecord component. -
registeredValues
The field for theregisteredValuesrecord component. -
errors
The field for theerrorsrecord component.
-
-
Constructor Details
-
Registries
private Registries(RegistryBuilder.AnyOwner anyOwner, RegistryBuilder.StandAloneEntryCreatingLookup standAloneEntryCreatingLookup, Map<Identifier, RegistryEntryLookup<?>> map, Map<RegistryKey<?>, RegistryBuilder.RegisteredValue<?>> map2, List<RuntimeException> list)
-
-
Method Details
-
of
public static RegistryBuilder.Registries of(DynamicRegistryManager dynamicRegistryManager, Stream<RegistryKey<? extends Registry<?>>> registryRefs) - Mappings:
Namespace Name Mixin selector official aLhu$a;a(Lhs;Ljava/util/stream/Stream;)Lhu$a;intermediary method_46796Lnet/minecraft/class_7877$class_7878;method_46796(Lnet/minecraft/class_5455;Ljava/util/stream/Stream;)Lnet/minecraft/class_7877$class_7878;named ofLnet/minecraft/registry/RegistryBuilder$Registries;of(Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/stream/Stream;)Lnet/minecraft/registry/RegistryBuilder$Registries;
-
createRegisterable
- Mappings:
Namespace Name Mixin selector official aLhu$a;a()Lnm;intermediary method_46787Lnet/minecraft/class_7877$class_7878;method_46787()Lnet/minecraft/class_7891;named createRegisterableLnet/minecraft/registry/RegistryBuilder$Registries;createRegisterable()Lnet/minecraft/registry/Registerable;
-
validateReferences
public void validateReferences()- Mappings:
Namespace Name Mixin selector official bLhu$a;b()Vintermediary method_46797Lnet/minecraft/class_7877$class_7878;method_46797()Vnamed validateReferencesLnet/minecraft/registry/RegistryBuilder$Registries;validateReferences()V
-
throwErrors
public void throwErrors()- Mappings:
Namespace Name Mixin selector official cLhu$a;c()Vintermediary method_46798Lnet/minecraft/class_7877$class_7878;method_46798()Vnamed throwErrorsLnet/minecraft/registry/RegistryBuilder$Registries;throwErrors()V
-
addOwner
- Mappings:
Namespace Name Mixin selector official aLhu$a;a(Lhh;)Vintermediary method_46795Lnet/minecraft/class_7877$class_7878;method_46795(Lnet/minecraft/class_7876;)Vnamed addOwnerLnet/minecraft/registry/RegistryBuilder$Registries;addOwner(Lnet/minecraft/registry/entry/RegistryEntryOwner;)V
-
setReferenceEntryValues
- Mappings:
Namespace Name Mixin selector official aLhu$a;a(Lhg$b;)Vintermediary method_46793Lnet/minecraft/class_7877$class_7878;method_46793(Lnet/minecraft/class_7225$class_7874;)Vnamed setReferenceEntryValuesLnet/minecraft/registry/RegistryBuilder$Registries;setReferenceEntryValues(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
-
streamRegistries
- Mappings:
Namespace Name Mixin selector official dLhu$a;d()Ljava/util/stream/Stream;intermediary method_49355Lnet/minecraft/class_7877$class_7878;method_49355()Ljava/util/stream/Stream;named streamRegistriesLnet/minecraft/registry/RegistryBuilder$Registries;streamRegistries()Ljava/util/stream/Stream;
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
lookup
Returns the value of thelookuprecord component.- Returns:
- the value of the
lookuprecord component
-
registries
Returns the value of theregistriesrecord component.- Returns:
- the value of the
registriesrecord component
-
registeredValues
Returns the value of theregisteredValuesrecord component.- Returns:
- the value of the
registeredValuesrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-