Package net.minecraftforge.client.event
Class ScreenEvent.Render
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.Render
- Direct Known Subclasses:
ScreenEvent.Render.Post
,ScreenEvent.Render.Pre
- Enclosing class:
- ScreenEvent
Fired when a screen is being drawn.
See the two subclasses for listening before and after drawing.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the screen is drawn.static class
Fired before the screen is drawn.Nested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
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
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the X coordinate of the mouse pointer.int
Returns the Y coordinate of the mouse pointer.float
Returns the partial tick.Returns the pose stack used for rendering.Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
poseStack
-
mouseX
private final int mouseX -
mouseY
private final int mouseY -
partialTick
private final float partialTick
-
-
Constructor Details
-
Render
-
-
Method Details
-
getPoseStack
Returns the pose stack used for rendering.- Returns:
- the pose stack used for rendering
-
getMouseX
public int getMouseX()Returns the X coordinate of the mouse pointer.- Returns:
- the X coordinate of the mouse pointer
-
getMouseY
public int getMouseY()Returns the Y coordinate of the mouse pointer.- Returns:
- the Y coordinate of the mouse pointer
-
getPartialTick
public float getPartialTick()Returns the partial tick.- Returns:
- the partial tick
-