Class AnimationStateHandler<T extends Timed>

java.lang.Object
kr.toxicity.model.api.animation.AnimationStateHandler<T>

@Internal public final class AnimationStateHandler<T extends Timed> extends Object
  • Constructor Details

    • AnimationStateHandler

      public AnimationStateHandler()
  • Method Details

    • keyframeFinished

      public boolean keyframeFinished()
    • runningAnimation

      @Nullable public @Nullable RunningAnimation runningAnimation()
    • tick

      public boolean tick()
    • tick

      public boolean tick(@NotNull @NotNull Runnable ifEmpty)
    • progress

      public float progress()
    • addAnimation

      public void addAnimation(@NotNull @NotNull String name, @NotNull @NotNull AnimationIterator<T> iterator, @NotNull @NotNull AnimationModifier modifier, @NotNull @NotNull AnimationEventHandler eventHandler)
    • replaceAnimation

      public void replaceAnimation(@NotNull @NotNull String name, @NotNull @NotNull AnimationIterator<T> iterator, @NotNull @NotNull AnimationModifier modifier)
    • stopAnimation

      public boolean stopAnimation(@NotNull @NotNull String name)
    • frame

      public float frame()