Record Class MultiPartGenerator.Entry
java.lang.Object
java.lang.Record
net.minecraft.client.data.models.blockstates.MultiPartGenerator.Entry
- Enclosing class:
MultiPartGenerator
private static record MultiPartGenerator.Entry(Optional<Condition> condition, MultiVariant variants)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theconditionrecord component.private final MultiVariantThe field for thevariantsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntry(Optional<Condition> condition, MultiVariant variants) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord 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.variants()Returns the value of thevariantsrecord component.
-
Field Details
-
condition
-
variants
The field for thevariantsrecord component.
-
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
condition- the value for theconditionrecord componentvariants- the value for thevariantsrecord component
-
-
Method Details
-
toUnbaked
-
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). -
condition
-
variants
Returns the value of thevariantsrecord component.- Returns:
- the value of the
variantsrecord component
-