Class CameraZoomManager

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.camera.CameraZoomManager

public final class CameraZoomManager extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Whether the view is zoomed at all right now.
    static float
     
    static void
    ease(float perTick)
     
    static float
    fov(float vanilla, float partialTick)
    The field of view, narrowed: the tangent of the half angle shrinks by the zoom, as through a real lens.
    static boolean
    onScroll(double amount)
    A notch of the wheel.
    static void
    scroll(@Nullable BooleanSupplier active, float min, float max, float step)
     
    static double
    What the mouse's turning is multiplied by.
    static void
    set(float factor)
     
    static float
     
    static void
    tick(net.minecraft.client.Minecraft minecraft)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • set

      public static void set(float factor)
    • ease

      public static void ease(float perTick)
    • target

      public static float target()
    • current

      public static float current()
    • scroll

      public static void scroll(@Nullable BooleanSupplier active, float min, float max, float step)
    • tick

      public static void tick(net.minecraft.client.Minecraft minecraft)
    • active

      public static boolean active()
      Whether the view is zoomed at all right now.
    • fov

      public static float fov(float vanilla, float partialTick)
      The field of view, narrowed: the tangent of the half angle shrinks by the zoom, as through a real lens.
    • sensitivity

      public static double sensitivity()
      What the mouse's turning is multiplied by.
    • onScroll

      public static boolean onScroll(double amount)
      A notch of the wheel. Returns whether it was taken for zooming.