AnimationStateHandler

@ApiStatus.Internal
class AnimationStateHandler<T : Timed?>

Animation state handler

Parameters

<T>

timed value

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Animation mapper
Link copied to clipboard
Mapping state

Functions

Link copied to clipboard
open fun addAnimation(@NotNull name: @NotNull String, @NotNull iterator: @NotNull AnimationIterator<T>, @NotNull modifier: @NotNull AnimationModifier, @NotNull eventHandler: @NotNull AnimationEventHandler)
Adds animation
Link copied to clipboard
open fun frame(): Float
Gets ticking frame of current keyframe
Link copied to clipboard
Checks this keyframe has been finished
Link copied to clipboard
open fun progress(): Float
Gets the progress of current keyframe
Link copied to clipboard
open fun replaceAnimation(@NotNull name: @NotNull String, @NotNull iterator: @NotNull AnimationIterator<T>, @NotNull modifier: @NotNull AnimationModifier)
Replaces animation
Link copied to clipboard
@Nullable
open fun runningAnimation(): @Nullable RunningAnimation
Gets running animation
Link copied to clipboard
open fun stopAnimation(@NotNull name: @NotNull String): Boolean
Remove animation
Link copied to clipboard
open fun tick(): Boolean
open fun tick(@NotNull ifEmpty: @NotNull Runnable): Boolean
Ticks this state handler