Class 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.
    • Constructor Summary

      Constructors 
      Constructor Description
      DrawBackground​(ContainerScreen guiContainer, MatrixStack mStack, int mouseX, int mouseY)
      Called directly after the GuiContainer has drawn any background elements.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MatrixStack getMatrixStack()  
      int getMouseX()  
      int getMouseY()  
      • Methods inherited from class net.minecraftforge.eventbus.api.Event

        getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mouseX

        private final int mouseX
      • mouseY

        private final int mouseY
    • Constructor Detail

      • DrawBackground

        public DrawBackground​(ContainerScreen guiContainer,
                              MatrixStack 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 Detail

      • getMouseX

        public int getMouseX()
      • getMouseY

        public int getMouseY()