Interface FramedSidebarAnimation<T>

Type Parameters:
T - frame type
All Superinterfaces:
SidebarAnimation<T>
All Known Implementing Classes:
CollectionSidebarAnimation

public interface FramedSidebarAnimation<T> extends SidebarAnimation<T>
A SidebarAnimation with predetermined frames.
  • Method Details

    • frames

      @NotNull @Unmodifiable @NotNull List<T> frames()
      Returns:
      all frames in this animation
    • currentFrameIndex

      int currentFrameIndex()
      Returns:
      the index of the current frame
    • switchFrame

      void switchFrame(int frameIndex)
      Switches the current frame
      Parameters:
      frameIndex - the index of the new current frame
      Throws:
      ArrayIndexOutOfBoundsException - if frame is out of bounds