Class AnimationTickHolder

java.lang.Object
net.createmod.catnip.animation.AnimationTickHolder

public class AnimationTickHolder extends Object
  • Constructor Details

    • AnimationTickHolder

      public AnimationTickHolder()
  • Method Details

    • reset

      public static void reset()
    • tick

      public static void tick()
    • getTicks

      public static int getTicks()
    • getTicks

      public static int getTicks(boolean includePaused)
    • getTicks

      public static int getTicks(net.minecraft.world.level.LevelAccessor level)
    • getPartialTicks

      public static float getPartialTicks(net.minecraft.world.level.LevelAccessor level)
    • getRenderTime

      public static float getRenderTime()
    • getRenderTime

      public static float getRenderTime(net.minecraft.world.level.LevelAccessor level)
    • getPartialTicks

      public static float getPartialTicks()
      Returns:
      the fraction between the current tick to the next tick, frozen during game pause [0-1]
    • getPartialTicksUI

      public static float getPartialTicksUI()
      Returns:
      the fraction between the current tick to the next tick, not frozen during game pause [0-1]