Record Class CompositeBlockModel.GeometryKey
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.block.CompositeBlockModel.GeometryKey
- Enclosing class:
CompositeBlockModel
private static record CompositeBlockModel.GeometryKey(List<Object> subKeys, CompositeBlockModel composite)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompositeBlockModelThe field for thecompositerecord component.The field for thesubKeysrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGeometryKey(List<Object> subKeys, CompositeBlockModel composite) Creates an instance of aGeometryKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompositerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.subKeys()Returns the value of thesubKeysrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
subKeys
The field for thesubKeysrecord component. -
composite
The field for thecompositerecord component.
-
-
Constructor Details
-
GeometryKey
Creates an instance of aGeometryKeyrecord class.- Parameters:
subKeys- the value for thesubKeysrecord componentcomposite- the value for thecompositerecord 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 thesubKeysrecord component.- Returns:
- the value of the
subKeysrecord component
-
composite
Returns the value of thecompositerecord component.- Returns:
- the value of the
compositerecord component
-