Interface AnimationIterator<T extends Timed>

Type Parameters:
T - the type of keyframe (must implement Timed)
All Superinterfaces:
Iterator<T>
All Known Implementing Classes:
AnimationIterator.HoldOnLast, AnimationIterator.Loop, AnimationIterator.PlayOnce

public sealed interface AnimationIterator<T extends Timed> extends Iterator<T> permits AnimationIterator.PlayOnce<T>, AnimationIterator.HoldOnLast<T>, AnimationIterator.Loop<T>
An iterator for traversing animation keyframes.

This interface supports different looping modes (play once, loop, hold on last) and allows resetting the iteration state.

Since:
1.15.2
  • Method Details

    • clear

      void clear()
      Resets the iterator to its initial state.
      Since:
      1.15.2
    • type

      @NotNull @NotNull AnimationIterator.Type type()
      Returns the type of this animation iterator.
      Returns:
      the animation type
      Since:
      1.15.2