Class GuiGraphics.ScissorStack

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

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

  • Constructor Details

    • ScissorStack

      ScissorStack()
  • Method Details

    • push

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

      Parameters:
      pScissor - 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

      @Nullable public ScreenRectangle pop()
    • containsPoint

      public boolean containsPoint(int pX, int pY)