public static class GuiScreenEvent.InitGuiEvent.Pre extends GuiScreenEvent.InitGuiEvent
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();GuiScreenEvent.InitGuiEvent.Post, GuiScreenEvent.InitGuiEvent.PreGuiScreenEvent.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.PotionShiftEventEvent.HasResult, Event.Result| コンストラクタと説明 |
|---|
Pre(Screen gui,
java.util.List<Widget> list,
java.util.function.Consumer<Widget> add,
java.util.function.Consumer<Widget> remove) |
addWidget, getWidgetList, removeWidgetgetGuigetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup