public static class GuiScreenEvent.InitGuiEvent.Pre extends GuiScreenEvent.InitGuiEvent
GuiScreen#mc
, GuiScreen#fontRenderer
,
GuiScreen#width
, and GuiScreen#height
.GuiScreen#setWorldAndResolution(Minecraft, int, int)
:this.buttonList.clear();
this.children.clear();
this.initGui();
GuiScreenEvent.InitGuiEvent.Post, GuiScreenEvent.InitGuiEvent.Pre
GuiScreenEvent.ActionPerformedEvent, 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
Constructor and Description |
---|
Pre(Screen gui,
java.util.List<Widget> list,
java.util.function.Consumer<Widget> add,
java.util.function.Consumer<Widget> remove) |
addWidget, getWidgetList, removeWidget
getGui