Record Class MultiPartModel.GeometryKey
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.multipart.MultiPartModel.GeometryKey
- Enclosing class:
MultiPartModel
private static record MultiPartModel.GeometryKey(List<Object> subKeys, MultiPartModel multiPart)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiPartModelThe field for themultiPartrecord component.The field for thesubKeysrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGeometryKey(List<Object> subKeys, MultiPartModel multiPart) Creates an instance of aGeometryKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themultiPartrecord component.subKeys()Returns the value of thesubKeysrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
subKeys
-
multiPart
The field for themultiPartrecord component.
-
-
Constructor Details
-
GeometryKey
Creates an instance of aGeometryKeyrecord class.- Parameters:
subKeys- the value for thesubKeysrecord componentmultiPart- the value for themultiPartrecord 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). -
subKeys
-
multiPart
Returns the value of themultiPartrecord component.- Returns:
- the value of the
multiPartrecord component
-