Record Class MultiPartGenerator.Entry
java.lang.Object
java.lang.Record
net.minecraft.client.data.models.blockstates.MultiPartGenerator.Entry
- Enclosing class:
MultiPartGenerator
static record MultiPartGenerator.Entry(Optional<Condition> condition, MultiVariant variants)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecondition
record component.private final MultiVariant
The field for thevariants
record component. -
Constructor Summary
ConstructorsConstructorDescriptionEntry
(Optional<Condition> condition, MultiVariant variants) Creates an instance of aEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecondition
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.variants()
Returns the value of thevariants
record component.
-
Field Details
-
condition
The field for thecondition
record component. -
variants
The field for thevariants
record component.
-
-
Constructor Details
-
Entry
Entry(Optional<Condition> condition, MultiVariant variants) Creates an instance of aEntry
record class.- Parameters:
condition
- the value for thecondition
record componentvariants
- the value for thevariants
record component
-
-
Method Details
-
toUnbaked
-
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)
. -
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-
variants
Returns the value of thevariants
record component.- Returns:
- the value of the
variants
record component
-