frame

open fun frame(): Float

Returns the active keyframe duration in Minecraft ticks. One tick is 50 ms.


float durationTicks = state.frame();

Return

the duration in ticks, or zero when no keyframe is active