public static class GuiScreenEvent.DrawScreenEvent extends GuiScreenEvent
Modifier and Type | Class and Description |
---|---|
static class |
GuiScreenEvent.DrawScreenEvent.Post
This event fires just after
GuiScreen#render(int, int, float) is called. |
static class |
GuiScreenEvent.DrawScreenEvent.Pre
This event fires just before
GuiScreen#render(int, int, float) is called. |
GuiScreenEvent.ActionPerformedEvent, 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
Modifier and Type | Field and Description |
---|---|
private int |
mouseX |
private int |
mouseY |
private float |
renderPartialTicks |
Constructor and Description |
---|
DrawScreenEvent(Screen gui,
int mouseX,
int mouseY,
float renderPartialTicks) |
Modifier and Type | Method and Description |
---|---|
int |
getMouseX()
The x coordinate of the mouse pointer on the screen.
|
int |
getMouseY()
The y coordinate of the mouse pointer on the screen.
|
float |
getRenderPartialTicks()
Partial render ticks elapsed.
|
getGui
private final int mouseX
private final int mouseY
private final float renderPartialTicks
public DrawScreenEvent(Screen gui, int mouseX, int mouseY, float renderPartialTicks)