animate

open fun animate(@NotNull animation: @NotNull String): Boolean

Plays an animation by name with default settings.

Return

true if the animation started

Since

1.15.2

Parameters

animation

the animation name


open fun animate(@NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier): Boolean

Plays an animation by name with a modifier.

Return

true if the animation started

Since

1.15.2

Parameters

animation

the animation name

modifier

the animation modifier


open fun animate(@NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier, @NotNull removeTask: @NotNull Runnable): Boolean

Plays an animation by name with a modifier and a completion task.

Return

true if the animation started

Since

1.15.2

Parameters

animation

the animation name

modifier

the animation modifier

removeTask

the task to run when the animation ends


open fun animate(@NotNull animation: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier): Boolean

Plays a blueprint animation with a modifier.

Return

true if the animation started

Since

1.15.2

Parameters

animation

the blueprint animation

modifier

the animation modifier


open fun animate(@NotNull animation: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier, @NotNull removeTask: @NotNull Runnable): Boolean

Plays a blueprint animation with a modifier and a completion task.

Return

true if the animation started

Since

1.15.2

Parameters

animation

the blueprint animation

modifier

the animation modifier

removeTask

the task to run when the animation ends


open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier, @NotNull removeTask: @NotNull Runnable): Boolean

Plays an animation on filtered bones.

Return

true if the animation started

Since

1.15.2

Parameters

filter

the bone filter

animation

the animation name

modifier

the animation modifier

removeTask

the task to run when the animation ends


open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier, @NotNull eventHandler: @NotNull AnimationEventHandler): Boolean

Plays an animation on filtered bones with an event handler.

Return

true if the animation started

Since

1.15.2

Parameters

filter

the bone filter

animation

the animation name

modifier

the animation modifier

eventHandler

the animation event handler


open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier, @NotNull removeTask: @NotNull Runnable): Boolean

Plays a blueprint animation on filtered bones.

Return

true if the animation started

Since

1.15.2

Parameters

filter

the bone filter

animation

the blueprint animation

modifier

the animation modifier

removeTask

the task to run when the animation ends


open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier, @NotNull eventHandler: @NotNull AnimationEventHandler): Boolean

Plays a blueprint animation on filtered bones with an event handler.

Return

true if the animation started

Since

1.15.2

Parameters

filter

the bone filter

animation

the blueprint animation

modifier

the animation modifier

eventHandler

the animation event handler