Record Class DataComponentInitializers.PendingComponentBuilders<T>
java.lang.Object
java.lang.Record
net.minecraft.core.component.DataComponentInitializers.PendingComponentBuilders<T>
- Enclosing class:
DataComponentInitializers
private static record DataComponentInitializers.PendingComponentBuilders<T>(ResourceKey<? extends Registry<T>> registryKey, Map<ResourceKey<T>, DataComponentMap.Builder> builders)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceKey<T>, DataComponentMap.Builder> The field for thebuildersrecord component.private final ResourceKey<? extends Registry<T>> The field for theregistryKeyrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingComponentBuilders(ResourceKey<? extends Registry<T>> registryKey, Map<ResourceKey<T>, DataComponentMap.Builder> builders) Creates an instance of aPendingComponentBuildersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilders()Returns the value of thebuildersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ResourceKey<? extends Registry<T>> Returns the value of theregistryKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
registryKey
The field for theregistryKeyrecord component. -
builders
The field for thebuildersrecord component.
-
-
Constructor Details
-
PendingComponentBuilders
private PendingComponentBuilders(ResourceKey<? extends Registry<T>> registryKey, Map<ResourceKey<T>, DataComponentMap.Builder> builders) Creates an instance of aPendingComponentBuildersrecord class.- Parameters:
registryKey- the value for theregistryKeyrecord componentbuilders- the value for thebuildersrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
registryKey
Returns the value of theregistryKeyrecord component.- Returns:
- the value of the
registryKeyrecord component
-
builders
Returns the value of thebuildersrecord component.- Returns:
- the value of the
buildersrecord component
-