Class GuiScreenEvent.InitGuiEvent.Pre

  • 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();
    • Constructor Detail

      • Pre

        public Pre​(Screen gui,
                   java.util.List<Widget> list,
                   java.util.function.Consumer<Widget> add,
                   java.util.function.Consumer<Widget> remove)