Package net.minecraftforge.client.event
Class GuiScreenEvent.InitGuiEvent.Pre
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.client.event.GuiScreenEvent
-
- net.minecraftforge.client.event.GuiScreenEvent.InitGuiEvent
-
- net.minecraftforge.client.event.GuiScreenEvent.InitGuiEvent.Pre
-
- Enclosing class:
- GuiScreenEvent.InitGuiEvent
public static class GuiScreenEvent.InitGuiEvent.Pre extends GuiScreenEvent.InitGuiEvent
This event fires just after initializingGuiScreen#mc
,GuiScreen#fontRenderer
,GuiScreen#width
, andGuiScreen#height
.
If canceled the following lines are skipped inGuiScreen#setWorldAndResolution(Minecraft, int, int)
:
this.buttonList.clear();
this.children.clear();
this.initGui();
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.client.event.GuiScreenEvent.InitGuiEvent
GuiScreenEvent.InitGuiEvent.Post, GuiScreenEvent.InitGuiEvent.Pre
-
Nested classes/interfaces inherited from class net.minecraftforge.client.event.GuiScreenEvent
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
-
-
Method Summary
-
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent.InitGuiEvent
addWidget, getWidgetList, removeWidget
-
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent
getGui
-
-