tick

open fun tick(): Boolean

Advances playback by one 50 ms Minecraft tick.


boolean shifted = state.tick();

Return

whether the active keyframe changed


open fun tick(@NotNull ifEmpty: @NotNull Runnable): Boolean

Advances playback by one 50 ms Minecraft tick. Checks for a keyframe change when the active keyframe ends or an update is requested.


boolean shifted = state.tick(onEmpty);

Return

whether the active keyframe changed

Parameters

ifEmpty

the callback to run when no animators are registered

Throws

if the callback is null and no animators are registered