java.lang.Object
nl.pim16aap2.animatedarchitecture.core.animation.AnimationUtil

public final class AnimationUtil extends Object
  • 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.