Class NativeUiScissor

java.lang.Object
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiScissor

public final class NativeUiScissor extends Object
Retains native clip precision independently of Java's integer GUI coordinate grid.
  • Constructor Details

  • Method Details

    • scaled

      public static NativeUiScissor scaled(NativeUiLayout.Rect bounds, int scale)
    • intersect

      public NativeUiScissor intersect(NativeUiScissor other)
    • 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

      public static boolean samePixels(NativeUiScissor first, NativeUiScissor second)
    • from

      public static NativeUiScissor from(net.minecraft.client.gui.navigation.ScreenRectangle rectangle)
    • 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.