Class GuiGraphics.ScissorStack

java.lang.Object
net.minecraft.client.gui.GuiGraphics.ScissorStack
Enclosing class:
GuiGraphics

private static class GuiGraphics.ScissorStack extends Object
A utility class for managing a stack of screen rectangles for scissoring.
  • Field Details

  • Constructor Details

    • ScissorStack

      private ScissorStack()
  • Method Details

    • push

      public ScreenRectangle push(ScreenRectangle rectangle)
      Pushes a screen rectangle onto the scissor stack.

      Parameters:
      rectangle - the screen rectangle to push.
      Returns:
      The resulting intersection of the pushed rectangle with the previous top rectangle on the stack, or the pushed rectangle if the stack is empty.
    • pop

      public @Nullable ScreenRectangle pop()
    • peek

      public @Nullable ScreenRectangle peek()
    • containsPoint

      public boolean containsPoint(int x, int y)