Skip to main content
Version: GeckoLib5

AnimationTimeline

The AnimationTimeline is an object each AnimationController keeps when it has an active animation.

What is it?​

When an AnimationController starts an animation, it takes the RawAnimation object and creates a new AnimationTimeline object.
This timeline represents the entire RawAnimation, including any transition periods into, out of, and between each stage.

You can think of the AnimationTimeline as the 'track' a RawAnimation plays along as it animates.

How do I use it?​

Typically, you wouldn't interact with an AnimationTimeline directly. Instead, GeckoLib interacts with it as part of its normal animation handling operations.

There are a few information-getter methods on the timeline object, but the controller usually provides its own returns for those values anyway.