Package net.minecraftforge.client.event
Class ContainerScreenEvent.DrawBackground
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ContainerScreenEvent
net.minecraftforge.client.event.ContainerScreenEvent.DrawBackground
- Enclosing class:
- ContainerScreenEvent
This event is fired directly after the GuiContainer has draw any background elements,
This is useful for drawing new background elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ContainerScreenEvent
ContainerScreenEvent.DrawBackground, ContainerScreenEvent.DrawForeground
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDrawBackground
(AbstractContainerScreen<?> guiContainer, PoseStack poseStack, int mouseX, int mouseY) Called directly after the GuiContainer has drawn any background elements. -
Method Summary
Methods inherited from class net.minecraftforge.client.event.ContainerScreenEvent
getContainerScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
poseStack
-
mouseX
private final int mouseX -
mouseY
private final int mouseY
-
-
Constructor Details
-
DrawBackground
public DrawBackground(AbstractContainerScreen<?> guiContainer, PoseStack poseStack, int mouseX, int mouseY) Called directly after the GuiContainer has drawn any background elements.- Parameters:
guiContainer
- The container.poseStack
- The PoseStack.mouseX
- The current X position of the players mouse.mouseY
- The current Y position of the players mouse.
-
-
Method Details
-
getPoseStack
-
getMouseX
public int getMouseX() -
getMouseY
public int getMouseY()
-