Interface IGuiScreen
- All Known Implementing Classes:
ArmorMainScreen
public interface IGuiScreen
An interface wrapper for actual Screen objects.
-
Method Summary
Modifier and TypeMethodDescription<T extends net.minecraft.client.gui.components.AbstractWidget>
TaddWidget(T w) Add a new widget to the GUInet.minecraft.client.gui.FontConvenience method to get the GUI's font renderer.default net.minecraft.client.gui.screens.ScreenGet the actual Screen object represented by this wrapper.List<net.minecraft.client.gui.components.Widget>Get a list of all widgets in this GUI.voidsetFocusedWidget(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; useaddWidget(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
-