roundTick

open fun roundTick(time: Float): Float

Rounds a time to the nearest 50 ms Minecraft tick. Half-ticks round toward positive infinity.


float time = InterpolationUtil.roundTick(0.08F); // 0.10 seconds

Return

the rounded time in seconds

Since

3.7.2

Parameters

time

the time in seconds