Class GuiScreenEvent.InitGuiEvent.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
GuiScreenEvent.InitGuiEvent

public static class GuiScreenEvent.InitGuiEvent.Pre extends GuiScreenEvent.InitGuiEvent
This event fires just after initializing GuiScreen#mc, GuiScreen#fontRenderer, GuiScreen#width, and GuiScreen#height.

If canceled the following lines are skipped in GuiScreen#setWorldAndResolution(Minecraft, int, int):
this.buttonList.clear();
this.children.clear();
this.initGui();