All Known Implementing Classes:
ArmorMainScreen

public interface IGuiScreen
An interface wrapper for actual Screen objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends net.minecraft.client.gui.components.AbstractWidget>
    T
    addWidget(T w)
    Add a new widget to the GUI
    net.minecraft.client.gui.Font
    Convenience method to get the GUI's font renderer.
    default net.minecraft.client.gui.screens.Screen
    Get the actual Screen object represented by this wrapper.
    List<net.minecraft.client.gui.components.Widget>
    Get a list of all widgets in this GUI.
    void
    setFocusedWidget(net.minecraft.client.gui.components.AbstractWidget w)
    Set the focus on a particular subwidget (generally a text field)
  • Method Details

    • addWidget

      <T extends net.minecraft.client.gui.components.AbstractWidget> T addWidget(T w)
      Add a new widget to the GUI
      Parameters:
      w - the widget to add
    • getWidgetList

      List<net.minecraft.client.gui.components.Widget> getWidgetList()
      Get a list of all widgets in this GUI. Don't use this to add subwidgets; use addWidget(AbstractWidget) instead.
      Returns:
      a list of widgets
    • getFontRenderer

      net.minecraft.client.gui.Font getFontRenderer()
      Convenience method to get the GUI's font renderer.
      Returns:
      a font renderer
    • setFocusedWidget

      void setFocusedWidget(net.minecraft.client.gui.components.AbstractWidget w)
      Set the focus on a particular subwidget (generally a text field)
    • getScreen

      default net.minecraft.client.gui.screens.Screen getScreen()
      Get the actual Screen object represented by this wrapper.
      Returns:
      the screen