Record Class Animation
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.animation.Animation
- Record Components:
lengthInSeconds-looping-boneAnimations-
@Environment(CLIENT)
public record Animation(float lengthInSeconds, boolean looping, Map<String,List<Transformation>> boneAnimations)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/animation/Animationintermediary net/minecraft/class_7184official fhdnamed lengthInSecondsintermediary comp_597official anamed loopingintermediary comp_598official bnamed boneAnimationsintermediary comp_599official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, List<Transformation>> The field for theboneAnimationsrecord component.private final floatThe field for thelengthInSecondsrecord component.private final booleanThe field for theloopingrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theboneAnimationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelengthInSecondsrecord component.booleanlooping()Returns the value of theloopingrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
lengthInSeconds
private final float lengthInSecondsThe field for thelengthInSecondsrecord component. -
looping
private final boolean loopingThe field for theloopingrecord component. -
boneAnimations
The field for theboneAnimationsrecord component.
-
-
Constructor Details
-
Animation
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
lengthInSeconds
public float lengthInSeconds()Returns the value of thelengthInSecondsrecord component.- Returns:
- the value of the
lengthInSecondsrecord component
-
looping
public boolean looping()Returns the value of theloopingrecord component.- Returns:
- the value of the
loopingrecord component
-
boneAnimations
Returns the value of theboneAnimationsrecord component.- Returns:
- the value of the
boneAnimationsrecord component
-