Class AnimatedComponent

java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.gui.components.animations.AnimatedComponent
Direct Known Subclasses:
SlideAnimation

public abstract class AnimatedComponent extends Object
  • Constructor Details

    • AnimatedComponent

      public AnimatedComponent(float duration)
  • Method Details

    • play

      public void play(boolean reverse)
    • play

      public void play(boolean reverse, AnimatedComponent.AnimMode mode)
    • update

      public void update()
    • stopAnimation

      public void stopAnimation()
    • getAlignedPosition

      @NotNull public abstract @NotNull AnimatedComponent.Position getAlignedPosition(ScreenAnchor screenAnchor, int screenWidth, int screenHeight, int width, int height, int padding)
    • getRelativePosition

      @NotNull public abstract @NotNull AnimatedComponent.Position getRelativePosition(ScreenAnchor screenAnchor, int x, int y, int width, int height, int padding)
    • getRelativeSize

      @NotNull public @NotNull AnimatedComponent.Size getRelativeSize(int width, int height, boolean reverseValues)
    • isPlaying

      public boolean isPlaying()
    • isForward

      public boolean isForward()
    • isFinished

      public boolean isFinished()
    • getDuration

      public float getDuration()
    • getTimeline

      public float getTimeline()
    • getAnimationMode

      public AnimatedComponent.AnimMode getAnimationMode()