WidgetQuery

Functions

Link copied to clipboard
open fun actionContains(actions: Array<String>): QueryType
Checks if any of the actions of this entity contains any of the specified actions, case insensitive
Link copied to clipboard
open fun actionEquals(actions: Array<String>): QueryType
Checks if any of the actions of this entity equal any of the specified actions, case sensitive
Link copied to clipboard
Checks if none of the actions of this entity contains any of the specified actions, case insensitive
Link copied to clipboard
open fun actionNotEquals(actions: Array<String>): QueryType
Checks if none of the actions of this entity equal any of the specified actions, case sensitive
Link copied to clipboard
open fun animationEquals(animationId: Array<Int>): WidgetQuery
Only match widgets whose animation id does not exactly equal any of the specified animation ids
Link copied to clipboard
open fun animationNotEquals(animationId: Array<Int>): WidgetQuery
Only match widgets whose animation id does not exactly equal any of the specified animation ids
Link copied to clipboard
protected fun asQueryType(): QueryType
Link copied to clipboard
open fun bank(): BankQuery
Creates a new BankQuery
Link copied to clipboard
open fun count(): Int
Executes this query and gets the number of results
Link copied to clipboard
protected open fun createSourceStream(): Stream<Widget>
Link copied to clipboard
Creates a new EquipmentQuery
Link copied to clipboard
open fun filter(filter: Predicate<EntityType>): QueryType
Applies the specified filter to this query.
Link copied to clipboard
Executes this query, and gets the first result if it exists
Link copied to clipboard
Executes this query, and selects a random result based on a uniform distribution
Link copied to clipboard
open fun forEach(consumer: Consumer<EntityType>)
Executes this query and passes each result to the specified consumer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Only match widgets who have children
Link copied to clipboard
open fun heightEquals(height: Array<Int>): WidgetQuery
Only match widgets whose height exactly equals one of the specified heights
Link copied to clipboard
open fun heightNotEquals(height: Array<Int>): WidgetQuery
Only match widgets whose height does not exactly equal any of the specified heights
Link copied to clipboard
open fun indexEquals(index: Array<Int>): QueryType
Only match entities with the specified index
Link copied to clipboard
open fun indexNotEquals(index: Array<Int>): QueryType
Only match entities who do not have the specified index
Link copied to clipboard
open fun inIndexPath(indexPath: Array<Int>): WidgetQuery
Adds the specified index path as one of the roots that will be searched.
Link copied to clipboard
open fun inRoots(roots: Array<Int>): WidgetQuery
See how inIndexPath works - this is equivalent to:
    for (int i : roots) {
        inIndexPath(i);
    }
Link copied to clipboard
Creates a new InventoryQuery
Link copied to clipboard
Only match widgets that are animating
Link copied to clipboard
open fun isAny(): Boolean
Executes this query and checks if any result exists
Link copied to clipboard
open fun isDepth(depth: Array<Int>): WidgetQuery
Requires that any matching widget be of the specified depth (depth is widget.getIndexPath().length)
Link copied to clipboard
open fun isHovering(): QueryType
Only match entities that are being hovered
Link copied to clipboard
open fun isItem(): WidgetQuery
Only matches widgets that represent an item
Link copied to clipboard
Only matches widgets that represent an item table
Link copied to clipboard
Only match widgets that are not animating
Link copied to clipboard
open fun isNotDepth(depth: Array<Int>): WidgetQuery
Requires that any matching widget not be of the specified depth (depth is widget.getIndexPath().length)
Link copied to clipboard
Only match entities that are not being hovered
Link copied to clipboard
Only match clickable entities that are not visible
Link copied to clipboard
open fun isVisible(): QueryType
Only match clickable entities that are visible
Link copied to clipboard
Link copied to clipboard
open fun maxHeight(height: Int): WidgetQuery
Only match widgets whose height is at most the specified max height
Link copied to clipboard
open fun maxWidth(width: Int): WidgetQuery
Only match widgets whose width is at most the specified max width
Link copied to clipboard
open fun minHeight(height: Int): WidgetQuery
Only match widgets whose height is at least the specified min height
Link copied to clipboard
open fun minWidth(width: Int): WidgetQuery
Only match widgets whose width is at least the specified min width
Link copied to clipboard
open fun modelIdEquals(modelId: Array<Int>): WidgetQuery
Only match widgets with the specified model id
Link copied to clipboard
open fun modelIdNotEquals(modelId: Array<Int>): WidgetQuery
Only match widgets without the specified model id
Link copied to clipboard
Only matches widgets whose name contains any of the specified names
Link copied to clipboard
Only matches widgets whose name equals any of the specified names
Link copied to clipboard
Only matches widgets whose name does not contain any of the specified names
Link copied to clipboard
Only matches widgets whose name does not equal any of the specified names
Link copied to clipboard
open fun npcs(): NpcQuery
Creates a new NpcQuery
Link copied to clipboard
open fun players(): PlayerQuery
Creates a new PlayerQuery
Link copied to clipboard
Only match widgets whose position equals one of the specified points
Link copied to clipboard
Only match widgets whose position does not equal one of the specified points
Link copied to clipboard
Link copied to clipboard
open fun shop(): ShopItemQuery
Creates a new ShopItemQuery
Link copied to clipboard
open fun sorted(comparator: Comparator<EntityType>): QueryType
Orders the query by the specified comparator.
Link copied to clipboard
open fun stream(): Stream<EntityType>
Returns this query as a stream.
Link copied to clipboard
Only match widgets with the specified text color
Link copied to clipboard
Only match widgets without the specified text color
Link copied to clipboard
Only matches widgets whose text contains any of the specified texts
Link copied to clipboard
Only matches widgets whose text equals any of the specified texts
Link copied to clipboard
Only matches widgets whose text does not contain any of the specified texts
Link copied to clipboard
Only matches widgets whose text does not equal any of the specified texts
Link copied to clipboard
open fun textureIdEquals(textureId: Array<Int>): WidgetQuery
Only match widgets with the specified texture id
Link copied to clipboard
open fun textureIdNotEquals(textureId: Array<Int>): WidgetQuery
Only match widgets without the specified texture id
Link copied to clipboard
open fun tiles(): TileQuery
Creates a new TileQuery
Link copied to clipboard
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.
Link copied to clipboard
open fun toList(): List<EntityType>
Executes this query, and gets the results
Link copied to clipboard
open fun trade(): TradeQuery
Creates a new TradeQuery
Link copied to clipboard
open fun widgets(): WidgetQuery
Creates a new WidgetQuery
Link copied to clipboard
open fun widthEquals(width: Array<Int>): WidgetQuery
Only match widgets whose width exactly equals one of the specified widths
Link copied to clipboard
open fun widthNotEquals(width: Array<Int>): WidgetQuery
Only match widgets whose width does not exactly equal any of the specified widths
Link copied to clipboard
open fun worlds(): WorldQuery
Creates a new WorldQuery