Package net.minecraftforge.client.event
Class ScreenEvent.DrawScreenEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.DrawScreenEvent
- Direct Known Subclasses:
ScreenEvent.DrawScreenEvent.Post
,ScreenEvent.DrawScreenEvent.Pre
- Enclosing class:
- ScreenEvent
-
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.ScreenEvent
ScreenEvent.BackgroundDrawnEvent, ScreenEvent.DrawScreenEvent, ScreenEvent.InitScreenEvent, ScreenEvent.KeyboardCharTypedEvent, ScreenEvent.KeyboardKeyEvent, ScreenEvent.KeyboardKeyPressedEvent, ScreenEvent.KeyboardKeyReleasedEvent, ScreenEvent.MouseClickedEvent, ScreenEvent.MouseDragEvent, ScreenEvent.MouseInputEvent, ScreenEvent.MouseReleasedEvent, ScreenEvent.MouseScrollEvent, ScreenEvent.PotionShiftEvent, ScreenEvent.PotionSizeEvent
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
Modifier and TypeFieldDescriptionprivate final int
private final int
private final float
private final PoseStack
-
Constructor Summary
ConstructorDescriptionDrawScreenEvent
(Screen screen, PoseStack poseStack, int mouseX, int mouseY, float partialTicks) -
Method Summary
Modifier and TypeMethodDescriptionint
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.The PoseStack to render with.Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
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 -
partialTicks
private final float partialTicks
-
-
Constructor Details
-
DrawScreenEvent
-
-
Method Details
-
getPoseStack
The PoseStack 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. -
getPartialTicks
public float getPartialTicks()Partial render ticks elapsed.
-