Class Screens
java.lang.Object
net.fabricmc.fabric.api.client.screen.v1.Screens
Utility methods related to screens.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ClickableWidget>
getButtons
(Screen screen) Gets all of a screen's button widgets.static MinecraftClient
static ItemRenderer
getItemRenderer
(Screen screen) Gets a screen's item renderer.static TextRenderer
getTextRenderer
(Screen screen) Gets a screen's text renderer.
-
Method Details
-
getButtons
Gets all of a screen's button widgets. The provided list allows for addition and removal of buttons from the screen. This method should be preferred over adding buttons directly to a screen'schild elements
.- Returns:
- a list of all of a screen's buttons
-
getItemRenderer
Gets a screen's item renderer.- Returns:
- the screen's item renderer
-
getTextRenderer
Gets a screen's text renderer.- Returns:
- the screen's text renderer.
-
getClient
-