Class CameraZoomManager
java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.camera.CameraZoomManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanactive()Whether the view is zoomed at all right now.static floatcurrent()static voidease(float perTick) static floatfov(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 booleanonScroll(double amount) A notch of the wheel.static voidscroll(@Nullable BooleanSupplier active, float min, float max, float step) static doubleWhat the mouse's turning is multiplied by.static voidset(float factor) static floattarget()static voidtick(net.minecraft.client.Minecraft minecraft)
-
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
-
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.
-