public static class GuiScreenEvent.DrawScreenEvent extends GuiScreenEvent
Modifier and Type | Class and Description |
---|---|
static class |
GuiScreenEvent.DrawScreenEvent.Post
This event fires just after
GuiScreen.drawScreen(int, int, float) is called. |
static class |
GuiScreenEvent.DrawScreenEvent.Pre
This event fires just before
GuiScreen.drawScreen(int, int, float) is called. |
GuiScreenEvent.ActionPerformedEvent, GuiScreenEvent.BackgroundDrawnEvent, GuiScreenEvent.DrawScreenEvent, GuiScreenEvent.InitGuiEvent, GuiScreenEvent.KeyboardInputEvent, GuiScreenEvent.MouseInputEvent, GuiScreenEvent.PotionShiftEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private int |
mouseX |
private int |
mouseY |
private float |
renderPartialTicks |
Constructor and Description |
---|
DrawScreenEvent(GuiScreen 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
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final int mouseX
private final int mouseY
private final float renderPartialTicks
public DrawScreenEvent(GuiScreen gui, int mouseX, int mouseY, float renderPartialTicks)