Record Class ModelLayerLocation
java.lang.Object
java.lang.Record
net.minecraft.client.model.geom.ModelLayerLocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thelayerrecord component.private final IdentifierThe field for themodelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelLayerLocation(Identifier model, String layer) Creates an instance of aModelLayerLocationrecord 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.layer()Returns the value of thelayerrecord component.model()Returns the value of themodelrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
model
The field for themodelrecord component. -
layer
The field for thelayerrecord component.
-
-
Constructor Details
-
ModelLayerLocation
Creates an instance of aModelLayerLocationrecord class.- Parameters:
model- the value for themodelrecord componentlayer- the value for thelayerrecord 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). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-