Record Class BlueprintAnimator.AnimatorData
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.BlueprintAnimator.AnimatorData
- Record Components:
name- the name of the boneposition- a list of position keyframesscale- a list of scale keyframesrotation- a list of rotation keyframesrotationGlobal- whether the rotation is applied globally
- Enclosing class:
BlueprintAnimator
public static record BlueprintAnimator.AnimatorData(@NotNull BoneName name, @NotNull List<VectorPoint> position, @NotNull List<VectorPoint> scale, @NotNull List<VectorPoint> rotation, boolean rotationGlobal)
extends Record
Holds the raw, separated animation data points for a bone before final processing.
- Since:
- 1.15.2
-
Constructor Summary
ConstructorsConstructorDescriptionAnimatorData(@NotNull BoneName name, @NotNull List<VectorPoint> position, @NotNull List<VectorPoint> scale, @NotNull List<VectorPoint> rotation, boolean rotationGlobal) Creates an instance of aAnimatorDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<VectorPoint> Returns a stream containing all keyframe points (position, scale, and rotation).final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull BoneNamename()Returns the value of thenamerecord component.@NotNull List<VectorPoint> position()Returns the value of thepositionrecord component.@NotNull List<VectorPoint> rotation()Returns the value of therotationrecord component.booleanReturns the value of therotationGlobalrecord component.@NotNull List<VectorPoint> scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnimatorData
public AnimatorData(@NotNull @NotNull BoneName name, @NotNull @NotNull List<VectorPoint> position, @NotNull @NotNull List<VectorPoint> scale, @NotNull @NotNull List<VectorPoint> rotation, boolean rotationGlobal) Creates an instance of aAnimatorDatarecord class.- Parameters:
name- the value for thenamerecord componentposition- the value for thepositionrecord componentscale- the value for thescalerecord componentrotation- the value for therotationrecord componentrotationGlobal- the value for therotationGlobalrecord component
-
-
Method Details
-
allPoints
Returns a stream containing all keyframe points (position, scale, and rotation).- Returns:
- a stream of all vector points
- Since:
- 1.15.2
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
rotationGlobal
public boolean rotationGlobal()Returns the value of therotationGlobalrecord component.- Returns:
- the value of the
rotationGlobalrecord component
-