Record Class DataComponentInitializers.BakedEntry<T>
java.lang.Object
java.lang.Record
net.minecraft.core.component.DataComponentInitializers.BakedEntry<T>
- Enclosing class:
DataComponentInitializers
private static record DataComponentInitializers.BakedEntry<T>(Holder.Reference<T> element, DataComponentMap components)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataComponentMapThe field for thecomponentsrecord component.private final Holder.Reference<T> The field for theelementrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBakedEntry(Holder.Reference<T> element, DataComponentMap components) Creates an instance of aBakedEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Returns the value of thecomponentsrecord component.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
element
The field for theelementrecord component. -
components
The field for thecomponentsrecord component.
-
-
Constructor Details
-
BakedEntry
Creates an instance of aBakedEntryrecord class.- Parameters:
element- the value for theelementrecord componentcomponents- the value for thecomponentsrecord component
-
-
Method Details
-
apply
public void apply() -
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). -
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-