- Enclosing class:
- GuiScreenEvent.InitGuiEvent
public static class GuiScreenEvent.InitGuiEvent.Pre
extends GuiScreenEvent.InitGuiEvent
This event fires just after initializing GuiScreen.mc
, GuiScreen.fontRendererObj
,
GuiScreen.width
, and GuiScreen.height
, and just before calling GuiScreen.buttonList.clear()
and GuiScreen.initGui()
. To skip or override a screen's initGui() method cancel the event.
If canceled the following lines are skipped in GuiScreen.setWorldAndResolution()
:
this.buttonList.clear();
this.initGui();