Class GuiScreenEvent.InitGuiEvent

    • Field Detail

      • add

        private java.util.function.Consumer<Widget> add
      • remove

        private java.util.function.Consumer<Widget> remove
      • list

        private java.util.List<Widget> list
    • Constructor Detail

      • InitGuiEvent

        public InitGuiEvent​(Screen gui,
                            java.util.List<Widget> list,
                            java.util.function.Consumer<Widget> add,
                            java.util.function.Consumer<Widget> remove)
    • Method Detail

      • getWidgetList

        public java.util.List<Widget> getWidgetList()
        Unmodifiable reference to the list of buttons on the GuiScreenEvent.gui.
      • addWidget

        public void addWidget​(Widget button)
      • removeWidget

        public void removeWidget​(Widget button)