Package net.minecraftforge.client.event
Class GuiScreenEvent.DrawScreenEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.GuiScreenEvent
net.minecraftforge.client.event.GuiScreenEvent.DrawScreenEvent
- Direct Known Subclasses:
GuiScreenEvent.DrawScreenEvent.Post
,GuiScreenEvent.DrawScreenEvent.Pre
- Enclosing class:
- GuiScreenEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event fires just afterScreen.render(PoseStack, int, int, float)
is called.static class
This event fires just beforeScreen.render(PoseStack, int, int, float)
is called.Nested classes/interfaces inherited from class net.minecraftforge.client.event.GuiScreenEvent
GuiScreenEvent.BackgroundDrawnEvent, GuiScreenEvent.DrawScreenEvent, GuiScreenEvent.InitGuiEvent, GuiScreenEvent.KeyboardCharTypedEvent, GuiScreenEvent.KeyboardKeyEvent, GuiScreenEvent.KeyboardKeyPressedEvent, GuiScreenEvent.KeyboardKeyReleasedEvent, GuiScreenEvent.MouseClickedEvent, GuiScreenEvent.MouseDragEvent, GuiScreenEvent.MouseInputEvent, GuiScreenEvent.MouseReleasedEvent, GuiScreenEvent.MouseScrollEvent, GuiScreenEvent.PotionShiftEvent
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
ConstructorDescriptionDrawScreenEvent(Screen gui, PoseStack mStack, int mouseX, int mouseY, float renderPartialTicks)
-
Method Summary
Modifier and TypeMethodDescriptionThe MatrixStack to render with.int
The x coordinate of the mouse pointer on the screen.int
The y coordinate of the mouse pointer on the screen.float
Partial render ticks elapsed.Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent
getGui
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
mStack
-
mouseX
private final int mouseX -
mouseY
private final int mouseY -
renderPartialTicks
private final float renderPartialTicks
-
-
Constructor Details
-
DrawScreenEvent
-
-
Method Details
-
getMatrixStack
The MatrixStack to render with. -
getMouseX
public int getMouseX()The x coordinate of the mouse pointer on the screen. -
getMouseY
public int getMouseY()The y coordinate of the mouse pointer on the screen. -
getRenderPartialTicks
public float getRenderPartialTicks()Partial render ticks elapsed.
-