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 aNodeAnimation
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Quaternionf
calculateInterpolatedRotation
(float time) org.joml.Vector3f
calculateInterpolatedScale
(float time) org.joml.Vector3f
calculateInterpolatedTranslation
(float time) final boolean
Indicates whether some other object is "equal to" this one.static Map
<String, NodeAnimation> fromAssimp
(org.lwjgl.assimp.AIAnimation assimpAnimation) static NodeAnimation
fromAssimp
(org.lwjgl.assimp.AINodeAnim assimpNodeAnimation) final int
hashCode()
Returns a hash code value for this object.nodeName()
Returns the value of thenodeName
record component.int
rotationAtTime
(float time) Returns the value of therotations
record component.scaling()
Returns the value of thescaling
record component.int
scalingAtTime
(float time) final String
toString()
Returns a string representation of this record class.int
translationAtTime
(float time) Returns the value of thetranslations
record component.
-
Constructor Details
-
NodeAnimation
public NodeAnimation(String nodeName, List<VectorKey> translations, List<VectorKey> scaling, List<QuaternionKey> rotations) Creates an instance of aNodeAnimation
record class.- Parameters:
nodeName
- the value for thenodeName
record componenttranslations
- the value for thetranslations
record componentscaling
- the value for thescaling
record componentrotations
- the value for therotations
record 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 thenodeName
record component.- Returns:
- the value of the
nodeName
record component
-
translations
Returns the value of thetranslations
record component.- Returns:
- the value of the
translations
record component
-
scaling
Returns the value of thescaling
record component.- Returns:
- the value of the
scaling
record component
-
rotations
Returns the value of therotations
record component.- Returns:
- the value of the
rotations
record component
-