AnimationGenerator

@ApiStatus.Internal
class AnimationGenerator

Generates animation data by interpolating keyframes and calculating bone movements.

This class processes raw animation points and generates smooth transitions for position, rotation, and scale. It handles the creation of intermediate frames to ensure fluid motion, especially for rotations.

Since

1.15.2

Companion functions

Link copied to clipboard
@NotNull
open fun generate(length: Float, @NotNull children: @NotNull List<BlueprintElement>, @NotNull pointMap: @NotNull Map<BoneName, BlueprintAnimator.AnimatorData>): @NotNull Map<BoneName, BlueprintAnimator>
Creates a map of blueprint animators from the provided animation data.

Functions

Link copied to clipboard
open fun interpolateRotation(@NotNull floats: @NotNull FloatSortedSet)
Inserts shared keyframes where display interpolation would lose the sampled rotation path.
Link copied to clipboard
open fun interpolateStep(@NotNull floats: @NotNull FloatSortedSet)
Inserts a frame one Minecraft tick before the next tick-rounded keyframe on discontinuous channels.