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
This event fires just after initializing the
If canceled the following lines are skipped in
Minecraft
, font renderer, width,
and height fields.If canceled the following lines are skipped in
Screen.init(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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionPre(Screen gui, List<GuiEventListener> list, Consumer<GuiEventListener> add, Consumer<GuiEventListener> remove)
-
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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Constructor Details
-
Pre
public Pre(Screen gui, List<GuiEventListener> list, Consumer<GuiEventListener> add, Consumer<GuiEventListener> remove)
-