WidgetQuery

public class WidgetQuery extends StreamBackedQuery<Widget, WidgetQuery> implements ActionableQuery<Widget, WidgetQuery>, ClickableQuery<Widget, WidgetQuery>, IndexableQuery<Widget, WidgetQuery>

A query to search over entities of type Widget

See also

Functions

actionContains
Link copied to clipboard
QueryType actionContains(Array<String> actions)
Checks if any of the actions of this entity contains any of the specified actions, case insensitive
actionEquals
Link copied to clipboard
QueryType actionEquals(Array<String> actions)
Checks if any of the actions of this entity equal any of the specified actions, case sensitive
actionNotContains
Link copied to clipboard
QueryType actionNotContains(Array<String> actions)
Checks if none of the actions of this entity contains any of the specified actions, case insensitive
actionNotEquals
Link copied to clipboard
QueryType actionNotEquals(Array<String> actions)
Checks if none of the actions of this entity equal any of the specified actions, case sensitive
animationEquals
Link copied to clipboard
WidgetQuery animationEquals(Array<int> animationId)
Only match widgets whose animation id does not exactly equal any of the specified animation ids
animationNotEquals
Link copied to clipboard
WidgetQuery animationNotEquals(Array<int> animationId)
Only match widgets whose animation id does not exactly equal any of the specified animation ids
bank
Link copied to clipboard
static BankQuery bank()
Creates a new BankQuery
count
Link copied to clipboard
int count()
Executes this query and gets the number of results
equipment
Link copied to clipboard
static EquipmentQuery equipment()
Creates a new EquipmentQuery
filter
Link copied to clipboard
QueryType filter(Predicate<EntityType> filter)
Applies the specified filter to this query.
findFirst
Link copied to clipboard
Optional<EntityTypefindFirst()
Executes this query, and gets the first result if it exists
findRandom
Link copied to clipboard
Optional<EntityTypefindRandom()
Executes this query, and selects a random result based on a uniform distribution
forEach
Link copied to clipboard
void forEach(Consumer<EntityType> consumer)
Executes this query and passes each result to the specified consumer
gameObjects
Link copied to clipboard
static GameObjectQuery gameObjects()
Creates a new GameObjectQuery
grandExchangeOffers
Link copied to clipboard
static GrandExchangeOfferQuery grandExchangeOffers()
graphicObjects
Link copied to clipboard
static GraphicObjectQuery graphicObjects()
Creates a new GraphicObjectQuery
groundItems
Link copied to clipboard
static GroundItemQuery groundItems()
Creates a new GroundItemQuery
hasChildren
Link copied to clipboard
WidgetQuery hasChildren()
Only match widgets who have children
heightEquals
Link copied to clipboard
WidgetQuery heightEquals(Array<int> height)
Only match widgets whose height exactly equals one of the specified heights
heightNotEquals
Link copied to clipboard
WidgetQuery heightNotEquals(Array<int> height)
Only match widgets whose height does not exactly equal any of the specified heights
indexEquals
Link copied to clipboard
QueryType indexEquals(Array<int> index)
Only match entities with the specified index
indexNotEquals
Link copied to clipboard
QueryType indexNotEquals(Array<int> index)
Only match entities who do not have the specified index
inIndexPath
Link copied to clipboard
WidgetQuery inIndexPath(Array<int> indexPath)
Adds the specified index path as one of the roots that will be searched.
inRoots
Link copied to clipboard
WidgetQuery inRoots(Array<int> roots)
See how inIndexPath works - this is equivalent to:
    for (int i : roots) {
        inIndexPath(i);
    }
inventory
Link copied to clipboard
static InventoryQuery inventory()
Creates a new InventoryQuery
isAnimating
Link copied to clipboard
WidgetQuery isAnimating()
Only match widgets that are animating
isAny
Link copied to clipboard
boolean isAny()
Executes this query and checks if any result exists
isDepth
Link copied to clipboard
WidgetQuery isDepth(Array<int> depth)
Requires that any matching widget be of the specified depth (depth is {@code widget.getIndexPath().length)}
isHovering
Link copied to clipboard
QueryType isHovering()
Only match entities that are being hovered
isItem
Link copied to clipboard
WidgetQuery isItem()
Only matches widgets that represent an item
isItemTable
Link copied to clipboard
WidgetQuery isItemTable()
Only matches widgets that represent an item table
isNotAnimating
Link copied to clipboard
WidgetQuery isNotAnimating()
Only match widgets that are not animating
isNotDepth
Link copied to clipboard
WidgetQuery isNotDepth(Array<int> depth)
Requires that any matching widget not be of the specified depth (depth is {@code widget.getIndexPath().length)}
isNotHovering
Link copied to clipboard
QueryType isNotHovering()
Only match entities that are not being hovered
isNotVisible
Link copied to clipboard
QueryType isNotVisible()
Only match clickable entities that are not visible
isVisible
Link copied to clipboard
QueryType isVisible()
Only match clickable entities that are visible
itemDefinitions
Link copied to clipboard
static ItemDefinitionQuery itemDefinitions()
Creates a new ItemDefinitionQuery
maxHeight
Link copied to clipboard
WidgetQuery maxHeight(int height)
Only match widgets whose height is at most the specified max height
maxWidth
Link copied to clipboard
WidgetQuery maxWidth(int width)
Only match widgets whose width is at most the specified max width
minHeight
Link copied to clipboard
WidgetQuery minHeight(int height)
Only match widgets whose height is at least the specified min height
minWidth
Link copied to clipboard
WidgetQuery minWidth(int width)
Only match widgets whose width is at least the specified min width
modelIdEquals
Link copied to clipboard
WidgetQuery modelIdEquals(Array<int> modelId)
Only match widgets with the specified model id
modelIdNotEquals
Link copied to clipboard
WidgetQuery modelIdNotEquals(Array<int> modelId)
Only match widgets without the specified model id
nameContains
Link copied to clipboard
WidgetQuery nameContains(Array<String> name)
Only matches widgets whose name contains any of the specified names
nameEquals
Link copied to clipboard
WidgetQuery nameEquals(Array<String> name)
Only matches widgets whose name equals any of the specified names
nameNotContains
Link copied to clipboard
WidgetQuery nameNotContains(Array<String> name)
Only matches widgets whose name does not contain any of the specified names
nameNotEquals
Link copied to clipboard
WidgetQuery nameNotEquals(Array<String> name)
Only matches widgets whose name does not equal any of the specified names
npcs
Link copied to clipboard
static NpcQuery npcs()
Creates a new NpcQuery
players
Link copied to clipboard
static PlayerQuery players()
Creates a new PlayerQuery
positionEquals
Link copied to clipboard
WidgetQuery positionEquals(Array<Point> p)
Only match widgets whose position equals one of the specified points
positionNotEquals
Link copied to clipboard
WidgetQuery positionNotEquals(Array<Point> p)
Only match widgets whose position does not equal one of the specified points
projectiles
Link copied to clipboard
static ProjectileQuery projectiles()
Creates a new ProjectileQuery
shop
Link copied to clipboard
static ShopItemQuery shop()
Creates a new ShopItemQuery
sorted
Link copied to clipboard
QueryType sorted(Comparator<EntityType> comparator)
Orders the query by the specified comparator.
stream
Link copied to clipboard
Stream<EntityTypestream()
Returns this query as a stream.
textColorEquals
Link copied to clipboard
WidgetQuery textColorEquals(Array<int> color)
Only match widgets with the specified text color
textColorNotEquals
Link copied to clipboard
WidgetQuery textColorNotEquals(Array<int> color)
Only match widgets without the specified text color
textContains
Link copied to clipboard
WidgetQuery textContains(Array<String> text)
Only matches widgets whose text contains any of the specified texts
textEquals
Link copied to clipboard
WidgetQuery textEquals(Array<String> text)
Only matches widgets whose text equals any of the specified texts
textNotContains
Link copied to clipboard
WidgetQuery textNotContains(Array<String> text)
Only matches widgets whose text does not contain any of the specified texts
textNotEquals
Link copied to clipboard
WidgetQuery textNotEquals(Array<String> text)
Only matches widgets whose text does not equal any of the specified texts
textureIdEquals
Link copied to clipboard
WidgetQuery textureIdEquals(Array<int> textureId)
Only match widgets with the specified texture id
textureIdNotEquals
Link copied to clipboard
WidgetQuery textureIdNotEquals(Array<int> textureId)
Only match widgets without the specified texture id
tiles
Link copied to clipboard
static TileQuery tiles()
Creates a new TileQuery
toItemQuery
Link copied to clipboard
WidgetItemQuery toItemQuery()
Converts this widget query to an widget item query that will match any of the widgets of this query, but the entity to search over is in the form of an org.tribot.script.sdk.interfaces.Item.
toList
Link copied to clipboard
List<EntityTypetoList()
Executes this query, and gets the results
trade
Link copied to clipboard
static TradeQuery trade()
Creates a new TradeQuery
widgets
Link copied to clipboard
static WidgetQuery widgets()
Creates a new WidgetQuery
widthEquals
Link copied to clipboard
WidgetQuery widthEquals(Array<int> width)
Only match widgets whose width exactly equals one of the specified widths
widthNotEquals
Link copied to clipboard
WidgetQuery widthNotEquals(Array<int> width)
Only match widgets whose width does not exactly equal any of the specified widths
worlds
Link copied to clipboard
static WorldQuery worlds()
Creates a new WorldQuery