Package net.minecraftforge.client.event
Class GuiContainerEvent.DrawForeground
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.client.event.GuiContainerEvent
-
- net.minecraftforge.client.event.GuiContainerEvent.DrawForeground
-
- Enclosing class:
- GuiContainerEvent
public static class GuiContainerEvent.DrawForeground extends GuiContainerEvent
This event is fired directly after the GuiContainer has draw any foreground elements, But before the "dragged" stack, and before any tooltips. This is useful for any slot / item specific overlays. Things that need to be on top of All GUI elements but bellow tooltips and dragged stacks.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.client.event.GuiContainerEvent
GuiContainerEvent.DrawBackground, GuiContainerEvent.DrawForeground
-
-
Field Summary
Fields Modifier and Type Field Description private int
mouseX
private int
mouseY
private MatrixStack
mStack
-
Constructor Summary
Constructors Constructor Description DrawForeground(ContainerScreen guiContainer, MatrixStack mStack, int mouseX, int mouseY)
Called directly after the GuiContainer has drawn any foreground 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.client.event.GuiContainerEvent
getGuiContainer
-
-
-
-
Field Detail
-
mStack
private final MatrixStack mStack
-
mouseX
private final int mouseX
-
mouseY
private final int mouseY
-
-
Constructor Detail
-
DrawForeground
public DrawForeground(ContainerScreen guiContainer, MatrixStack mStack, int mouseX, int mouseY)
Called directly after the GuiContainer has drawn any foreground 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
-
getMatrixStack
public MatrixStack getMatrixStack()
-
getMouseX
public int getMouseX()
-
getMouseY
public int getMouseY()
-
-