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 - official - eoe- intermediary - net/minecraft/class_7184- named - net/minecraft/client/render/entity/animation/Animation- official - a- intermediary - comp_597- named - lengthInSeconds- official - b- intermediary - comp_598- named - looping- official - c- intermediary - comp_599- named - boneAnimations
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
lengthInSecondsprivate final float lengthInSecondsThe field for thelengthInSecondsrecord component.
- 
loopingprivate final boolean loopingThe field for theloopingrecord component.
- 
boneAnimationsThe field for theboneAnimationsrecord component.
 
- 
- 
Constructor Details- 
Animation
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
lengthInSecondspublic float lengthInSeconds()Returns the value of thelengthInSecondsrecord component.- Returns:
- the value of the lengthInSecondsrecord component
 
- 
loopingpublic boolean looping()Returns the value of theloopingrecord component.- Returns:
- the value of the loopingrecord component
 
- 
boneAnimationsReturns the value of theboneAnimationsrecord component.- Returns:
- the value of the boneAnimationsrecord component
 
 
-