Class UiScenarioPointer

java.lang.Object
com.render.testkit.UiScenarioPointer

public final class UiScenarioPointer extends Object
Development-only pointer override. It changes Minecraft's input coordinates without OS event injection.
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    scaledX(double real, int guiWidth, int windowWidth)
    Returns the scenario X in Minecraft GUI units while a scenario owns the pointer.
    static double
    scaledY(double real, int guiHeight, int windowHeight)
    Returns the scenario Y in Minecraft GUI units, using the logical window height.
    static double
    x(double real)
    Returns the synthetic window coordinate only while a scenario owns the pointer.
    static double
    y(double real)
    Returns the synthetic window coordinate only while a scenario owns the pointer.

    Methods inherited from class Object

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

    • x

      public static double x(double real)
      Returns the synthetic window coordinate only while a scenario owns the pointer.
    • y

      public static double y(double real)
      Returns the synthetic window coordinate only while a scenario owns the pointer.
    • scaledX

      public static double scaledX(double real, int guiWidth, int windowWidth)
      Returns the scenario X in Minecraft GUI units while a scenario owns the pointer.

      Window dimensions are the logical window size used by Minecraft's mouse handler, rather than the framebuffer size, which can differ on a display with a higher pixel density.

    • scaledY

      public static double scaledY(double real, int guiHeight, int windowHeight)
      Returns the scenario Y in Minecraft GUI units, using the logical window height.