generate

@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. The bones share a timeline built from tick-rounded keyframe times and the supplied endpoints. Configured interpolation frames are added first, followed by rotation splits and step frames.


var animators = AnimationGenerator.generate(animation.tickTime(), roots, pointsByBone);

Return

a map of generated blueprint animators keyed by bone name

Since

1.15.2

Parameters

length

the animation end time in seconds, normally aligned to a Minecraft tick

children

the list of root blueprint elements (bones)

pointMap

a map containing raw animation data for each bone