Class NativeUiScissor
java.lang.Object
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiScissor
Retains native clip precision independently of Java's integer GUI coordinate grid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenable(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Rect bounds) The supplied rectangle is in absolute native layout units, before the Java pose scale.static NativeUiScissorfrom(net.minecraft.client.gui.navigation.ScreenRectangle rectangle) net.minecraft.client.gui.navigation.ScreenRectangleguiBounds(int javaScale) Conservative bounds for Java's overlap search; the render pass uses the exact pixels.intersect(NativeUiScissor other) net.minecraft.client.gui.navigation.ScreenRectanglepixels()static booleansamePixels(NativeUiScissor first, NativeUiScissor second) static NativeUiScissorscaled(NativeUiLayout.Rect bounds, int scale)
-
Constructor Details
-
NativeUiScissor
-
-
Method Details
-
scaled
-
intersect
-
pixels
public net.minecraft.client.gui.navigation.ScreenRectangle pixels() -
guiBounds
public net.minecraft.client.gui.navigation.ScreenRectangle guiBounds(int javaScale) Conservative bounds for Java's overlap search; the render pass uses the exact pixels. -
samePixels
-
enable
public static void enable(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Rect bounds) The supplied rectangle is in absolute native layout units, before the Java pose scale.
-