Record Class FoxRenderer.FoxTexturesByState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.FoxRenderer.FoxTexturesByState
- Enclosing class:
FoxRenderer
private static record FoxRenderer.FoxTexturesByState(FoxRenderer.FoxTexturesByAge idle, FoxRenderer.FoxTexturesByAge sleeping)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FoxRenderer.FoxTexturesByAgeThe field for theidlerecord component.private final FoxRenderer.FoxTexturesByAgeThe field for thesleepingrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates an instance of aFoxTexturesByStaterecord 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.idle()Returns the value of theidlerecord component.sleeping()Returns the value of thesleepingrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
idle
The field for theidlerecord component. -
sleeping
The field for thesleepingrecord component.
-
-
Constructor Details
-
FoxTexturesByState
private FoxTexturesByState(FoxRenderer.FoxTexturesByAge idle, FoxRenderer.FoxTexturesByAge sleeping) Creates an instance of aFoxTexturesByStaterecord class.- Parameters:
idle- the value for theidlerecord componentsleeping- the value for thesleepingrecord 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). -
idle
Returns the value of theidlerecord component.- Returns:
- the value of the
idlerecord component
-
sleeping
Returns the value of thesleepingrecord component.- Returns:
- the value of the
sleepingrecord component
-