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 bone
position - a list of position keyframes
scale - a list of scale keyframes
rotation - a list of rotation keyframes
rotationGlobal - 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 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 a AnimatorData record class.
      Parameters:
      name - the value for the name record component
      position - the value for the position record component
      scale - the value for the scale record component
      rotation - the value for the rotation record component
      rotationGlobal - the value for the rotationGlobal record component
  • Method Details

    • allPoints

      @NotNull public @NotNull Stream<VectorPoint> allPoints()
      Returns a stream containing all keyframe points (position, scale, and rotation).
      Returns:
      a stream of all vector points
      Since:
      1.15.2
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @NotNull public @NotNull BoneName name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • position

      @NotNull public @NotNull List<VectorPoint> position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • scale

      @NotNull public @NotNull List<VectorPoint> scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • rotation

      @NotNull public @NotNull List<VectorPoint> rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • rotationGlobal

      public boolean rotationGlobal()
      Returns the value of the rotationGlobal record component.
      Returns:
      the value of the rotationGlobal record component