Class UiScenarioPointer
java.lang.Object
com.render.testkit.UiScenarioPointer
Development-only pointer override. It changes Minecraft's input coordinates without OS event injection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublescaledX(double real, int guiWidth, int windowWidth) Returns the scenario X in Minecraft GUI units while a scenario owns the pointer.static doublescaledY(double real, int guiHeight, int windowHeight) Returns the scenario Y in Minecraft GUI units, using the logical window height.static doublex(double real) Returns the synthetic window coordinate only while a scenario owns the pointer.static doubley(double real) Returns the synthetic window coordinate only while a scenario owns the pointer.
-
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.
-