Record Class HorseMarkingLayer.HorseMarkingTextures
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.layers.HorseMarkingLayer.HorseMarkingTextures
- Enclosing class:
HorseMarkingLayer
private static record HorseMarkingLayer.HorseMarkingTextures(Identifier adult, Identifier baby)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theadultrecord component.private final IdentifierThe field for thebabyrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHorseMarkingTextures(Identifier adult, Identifier baby) Creates an instance of aHorseMarkingTexturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadult()Returns the value of theadultrecord component.baby()Returns the value of thebabyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
adult
The field for theadultrecord component. -
baby
The field for thebabyrecord component.
-
-
Constructor Details
-
HorseMarkingTextures
Creates an instance of aHorseMarkingTexturesrecord class.- Parameters:
adult- the value for theadultrecord componentbaby- the value for thebabyrecord 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). -
adult
Returns the value of theadultrecord component.- Returns:
- the value of the
adultrecord component
-
baby
Returns the value of thebabyrecord component.- Returns:
- the value of the
babyrecord component
-