Class GuiContainerEvent.DrawBackground

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.GuiContainerEvent
net.minecraftforge.client.event.GuiContainerEvent.DrawBackground
Enclosing class:
GuiContainerEvent

public static class GuiContainerEvent.DrawBackground extends GuiContainerEvent
This event is fired directly after the GuiContainer has draw any background elements, This is useful for drawing new background elements.
  • Field Details

    • mStack

      private final PoseStack mStack
    • mouseX

      private final int mouseX
    • mouseY

      private final int mouseY
  • Constructor Details

    • DrawBackground

      public DrawBackground(AbstractContainerScreen guiContainer, PoseStack mStack, int mouseX, int mouseY)
      Called directly after the GuiContainer has drawn any background elements.
      Parameters:
      guiContainer - The container.
      mStack - The MatrixStack.
      mouseX - The current X position of the players mouse.
      mouseY - The current Y position of the players mouse.
  • Method Details

    • getMatrixStack

      public PoseStack getMatrixStack()
    • getMouseX

      public int getMouseX()
    • getMouseY

      public int getMouseY()