Class AnimationUtil
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.animation.AnimationUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetAnimationTicks(double animationDuration, int serverTickTime) Converts the animation time into a number of animation ticks.
-
Method Details
-
getAnimationTicks
public static int getAnimationTicks(double animationDuration, int serverTickTime) Converts the animation time into a number of animation ticks.- Parameters:
animationDuration- The duration of the animation in seconds.serverTickTime- The duration of a server tick in ms.- Returns:
- The number of ticks in the animation.
-