Record Class NodeAnimation
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.assimp.animation.NodeAnimation
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNodeAnimation(String nodeName, List<VectorKey> translations, List<VectorKey> scaling, List<QuaternionKey> rotations) Creates an instance of aNodeAnimationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.QuaternionfcalculateInterpolatedRotation(float time) org.joml.Vector3fcalculateInterpolatedScale(float time) org.joml.Vector3fcalculateInterpolatedTranslation(float time) final booleanIndicates whether some other object is "equal to" this one.static Map<String, NodeAnimation> fromAssimp(org.lwjgl.assimp.AIAnimation assimpAnimation) static NodeAnimationfromAssimp(org.lwjgl.assimp.AINodeAnim assimpNodeAnimation) final inthashCode()Returns a hash code value for this object.nodeName()Returns the value of thenodeNamerecord component.introtationAtTime(float time) Returns the value of therotationsrecord component.scaling()Returns the value of thescalingrecord component.intscalingAtTime(float time) final StringtoString()Returns a string representation of this record class.inttranslationAtTime(float time) Returns the value of thetranslationsrecord component.
-
Constructor Details
-
NodeAnimation
public NodeAnimation(String nodeName, List<VectorKey> translations, List<VectorKey> scaling, List<QuaternionKey> rotations) Creates an instance of aNodeAnimationrecord class.- Parameters:
nodeName- the value for thenodeNamerecord componenttranslations- the value for thetranslationsrecord componentscaling- the value for thescalingrecord componentrotations- the value for therotationsrecord component
-
-
Method Details
-
scalingAtTime
public int scalingAtTime(float time) -
translationAtTime
public int translationAtTime(float time) -
rotationAtTime
public int rotationAtTime(float time) -
calculateInterpolatedTranslation
public org.joml.Vector3f calculateInterpolatedTranslation(float time) -
calculateInterpolatedRotation
public org.joml.Quaternionf calculateInterpolatedRotation(float time) -
calculateInterpolatedScale
public org.joml.Vector3f calculateInterpolatedScale(float time) -
fromAssimp
-
fromAssimp
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
nodeName
Returns the value of thenodeNamerecord component.- Returns:
- the value of the
nodeNamerecord component
-
translations
Returns the value of thetranslationsrecord component.- Returns:
- the value of the
translationsrecord component
-
scaling
Returns the value of thescalingrecord component.- Returns:
- the value of the
scalingrecord component
-
rotations
Returns the value of therotationsrecord component.- Returns:
- the value of the
rotationsrecord component
-