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 ht$a
intermediary net/minecraft/class_7877$class_7878
named net/minecraft/registry/RegistryBuilder$Registries
official a
intermediary comp_1135
named owner
official b
intermediary comp_1136
named lookup
official c
intermediary comp_1137
named registries
official d
intermediary comp_1138
named registeredValues
official e
intermediary comp_1139
named errors
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<RuntimeException>
The field for theerrors
record component.private final RegistryBuilder.StandAloneEntryCreatingLookup
The field for thelookup
record component.private final RegistryBuilder.AnyOwner
The field for theowner
record component.private final Map<RegistryKey<?>,
RegistryBuilder.RegisteredValue<?>> The field for theregisteredValues
record component.private final Map<Identifier,
RegistryEntryLookup<?>> The field for theregistries
record component. -
Constructor Summary
ModifierConstructorDescriptionprivate
Registries
(RegistryBuilder.AnyOwner anyOwner, RegistryBuilder.StandAloneEntryCreatingLookup standAloneEntryCreatingLookup, Map<Identifier, RegistryEntryLookup<?>> map, Map<RegistryKey<?>, RegistryBuilder.RegisteredValue<?>> map2, List<RuntimeException> list) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOwner
(RegistryEntryOwner<?> owner) <T> Registerable<T>
final boolean
Indicates whether some other object is "equal to" this one.errors()
Returns the value of theerrors
record component.final int
hashCode()
Returns a hash code value for this object.lookup()
Returns the value of thelookup
record component.static RegistryBuilder.Registries
of
(DynamicRegistryManager dynamicRegistryManager, Stream<RegistryKey<? extends Registry<?>>> registryRefs) owner()
Returns the value of theowner
record component.Returns the value of theregisteredValues
record component.Returns the value of theregistries
record component.void
void
final String
toString()
Returns a string representation of this record class.void
-
Field Details
-
owner
The field for theowner
record component. -
lookup
The field for thelookup
record component. -
registries
The field for theregistries
record component. -
registeredValues
The field for theregisteredValues
record component. -
errors
The field for theerrors
record 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 a
Lht$a;a(Lhr;Ljava/util/stream/Stream;)Lht$a;
intermediary method_46796
Lnet/minecraft/class_7877$class_7878;method_46796(Lnet/minecraft/class_5455;Ljava/util/stream/Stream;)Lnet/minecraft/class_7877$class_7878;
named of
Lnet/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 a
Lht$a;a()Lnr;
intermediary method_46787
Lnet/minecraft/class_7877$class_7878;method_46787()Lnet/minecraft/class_7891;
named createRegisterable
Lnet/minecraft/registry/RegistryBuilder$Registries;createRegisterable()Lnet/minecraft/registry/Registerable;
-
validateReferences
public void validateReferences()- Mappings:
Namespace Name Mixin selector official b
Lht$a;b()V
intermediary method_46797
Lnet/minecraft/class_7877$class_7878;method_46797()V
named validateReferences
Lnet/minecraft/registry/RegistryBuilder$Registries;validateReferences()V
-
throwErrors
public void throwErrors()- Mappings:
Namespace Name Mixin selector official c
Lht$a;c()V
intermediary method_46798
Lnet/minecraft/class_7877$class_7878;method_46798()V
named throwErrors
Lnet/minecraft/registry/RegistryBuilder$Registries;throwErrors()V
-
addOwner
- Mappings:
Namespace Name Mixin selector official a
Lht$a;a(Lhh;)V
intermediary method_46795
Lnet/minecraft/class_7877$class_7878;method_46795(Lnet/minecraft/class_7876;)V
named addOwner
Lnet/minecraft/registry/RegistryBuilder$Registries;addOwner(Lnet/minecraft/registry/entry/RegistryEntryOwner;)V
-
setReferenceEntryValues
- Mappings:
Namespace Name Mixin selector official a
Lht$a;a(Lhg$b;)V
intermediary method_46793
Lnet/minecraft/class_7877$class_7878;method_46793(Lnet/minecraft/class_7225$class_7874;)V
named setReferenceEntryValues
Lnet/minecraft/registry/RegistryBuilder$Registries;setReferenceEntryValues(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
-
streamRegistries
- Mappings:
Namespace Name Mixin selector official d
Lht$a;d()Ljava/util/stream/Stream;
intermediary method_49355
Lnet/minecraft/class_7877$class_7878;method_49355()Ljava/util/stream/Stream;
named streamRegistries
Lnet/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 theowner
record component.- Returns:
- the value of the
owner
record component
-
lookup
Returns the value of thelookup
record component.- Returns:
- the value of the
lookup
record component
-
registries
Returns the value of theregistries
record component.- Returns:
- the value of the
registries
record component
-
registeredValues
Returns the value of theregisteredValues
record component.- Returns:
- the value of the
registeredValues
record component
-
errors
Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-