Record Class BlueprintAnimator
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.BlueprintAnimator
- Record Components:
name- the name of the bone this animator applies tokeyframe- a list of animation movements representing the keyframes
public record BlueprintAnimator(@NotNull BoneName name, @NotNull AnimationKeyframe keyframe)
extends Record
Represents the processed animation data for a single bone within a model blueprint.
This record holds the sequence of keyframes that define the bone's movement over time.
- Since:
- 1.15.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordHolds the raw, separated animation data points for a bone before final processing. -
Constructor Summary
ConstructorsConstructorDescriptionBlueprintAnimator(@NotNull BoneName name, @NotNull AnimationKeyframe keyframe) Creates an instance of aBlueprintAnimatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull AnimationIterator<AnimationProgress> Creates an iterator for the keyframes based on a specified loop type.@NotNull AnimationKeyframekeyframe()Returns the value of thekeyframerecord component.@NotNull BoneNamename()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlueprintAnimator
public BlueprintAnimator(@NotNull @NotNull BoneName name, @NotNull @NotNull AnimationKeyframe keyframe) Creates an instance of aBlueprintAnimatorrecord class.
-
-
Method Details
-
iterator
@NotNull public @NotNull AnimationIterator<AnimationProgress> iterator(@NotNull AnimationIterator.Type type) Creates an iterator for the keyframes based on a specified loop type.- Parameters:
type- the loop type (e.g., play_once, loop)- Returns:
- an animation iterator
- Since:
- 1.15.2
-
toString
-
hashCode
-
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). -
name
-
keyframe
-