Widgets

public class Widgets

Utilities for inspecting Widgets. These make up the user interface of the game, such as the inventory tab or chatbox.

Functions

closeAll
Link copied to clipboard
static void closeAll()
Attempts to close all "closable" widgets.
find
Link copied to clipboard
static Optional<Widgetfind(Predicate<Widget> filter, Array<int> startInterfacePath)
Walks the tree of widget, starting with the widget provided by the given path.
findWhereAction
Link copied to clipboard
static Optional<WidgetfindWhereAction(String action, Array<int> startInterfacePath)
Walks the tree of widget, starting with the interface provided by the given path.
get
Link copied to clipboard
static Optional<Widgetget(Array<int> path)
Finds the widget with the given indexes.
isVisible
Link copied to clipboard
static boolean isVisible(Array<int> indexPath)
Checks if a widget with the specified index path is visible