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 MultiPartModel
The field for themultiPart
record component.The field for thesubKeys
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GeometryKey
(List<Object> subKeys, MultiPartModel multiPart) Creates an instance of aGeometryKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themultiPart
record component.subKeys()
Returns the value of thesubKeys
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
subKeys
The field for thesubKeys
record component. -
multiPart
The field for themultiPart
record component.
-
-
Constructor Details
-
GeometryKey
Creates an instance of aGeometryKey
record class.- Parameters:
subKeys
- the value for thesubKeys
record componentmultiPart
- the value for themultiPart
record component
-
-
Method Details
-
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)
. -
subKeys
Returns the value of thesubKeys
record component.- Returns:
- the value of the
subKeys
record component
-
multiPart
Returns the value of themultiPart
record component.- Returns:
- the value of the
multiPart
record component
-