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 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
Removes duplicate entities from this query based on the id (keeps the first match, removes the rest)
Link copied to clipboard
Removes duplicate entities from this query based on the name (keeps the first match, removes the rest)
Link copied to clipboard
Creates a new EquipmentQuery
Link copied to clipboard
abstract fun filter(filter: Predicate<EntityType>): QueryType
Applies the specified filter to this query.
Link copied to clipboard
Executes this query and gets the closest item to the mouse
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
open fun idEquals(id: Array<Int>): QueryType
Only match entities with the specified id
Link copied to clipboard
open fun idNotEquals(id: Array<Int>): QueryType
Only match entities who do not have the specified id
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
Creates a new InventoryQuery
Link copied to clipboard
open fun isAny(): Boolean
Executes this query and checks if any result exists
Link copied to clipboard
open fun isBankable(): QueryType
Only match items that are bankable
Link copied to clipboard
Only match items that can be traded on the grand exchange
Link copied to clipboard
open fun isHovering(): QueryType
Only match entities that are being hovered
Link copied to clipboard
Only match items that are members only
Link copied to clipboard
Only match items that are not bankable
Link copied to clipboard
open fun isNoted(): QueryType
Only match items that are noted
Link copied to clipboard
Only match items that cannot be traded on the grand exchange
Link copied to clipboard
Only match entities that are not being hovered
Link copied to clipboard
Only match items that are not members only
Link copied to clipboard
open fun isNotNoted(): QueryType
Only match items that are not noted
Link copied to clipboard
Only match items that are not stackable
Link copied to clipboard
Only match clickable entities that are not visible
Link copied to clipboard
Only match items that are stackable
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 maxPrice(max: Int): QueryType
Only match items that have at most the specified price.
Link copied to clipboard
open fun maxStack(maxStack: Int): QueryType
Only match entities with at most the specified stack size
Link copied to clipboard
open fun maxStackPrice(max: Int): QueryType
Only match items that have at most the specified stack price (stack price = price * item stack).
Link copied to clipboard
open fun minPrice(min: Int): QueryType
Only match items that have at least the specified price.
Link copied to clipboard
open fun minStack(minStack: Int): QueryType
Only match entities with at least the specified stack size
Link copied to clipboard
open fun minStackPrice(min: Int): QueryType
Only match items that have at least the stack price (stack price = price * item stack).
Link copied to clipboard
open fun nameContains(names: Array<String>): QueryType
Only match entities whose name contains any of the specified names, case insensitive
Link copied to clipboard
open fun nameEquals(names: Array<String>): QueryType
Only match entities with the specified names, case sensitive
Link copied to clipboard
Only match entities whose name does not contains any of the specified names, case insensitive
Link copied to clipboard
open fun nameNotEquals(names: Array<String>): QueryType
Only match entities whose name does not equal any of the specified names, case sensitive
Link copied to clipboard
Only match entities whose name does not start with any of the specified names, case insensitive
Link copied to clipboard
Only match entities whose name starts with any of the specified names, case insensitive
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
Link copied to clipboard
open fun shop(): ShopItemQuery
Creates a new ShopItemQuery
Link copied to clipboard
abstract fun sorted(comparator: Comparator<EntityType>): QueryType
Orders the query by the specified comparator.
Link copied to clipboard
Sorts this query by distance to the mouse, with closer entities first
Link copied to clipboard
open fun stackEquals(stack: Array<Int>): QueryType
Only match entities who have the specified stack
Link copied to clipboard
open fun stackNotEquals(stack: Array<Int>): QueryType
Only match entities who do not have the specified stack
Link copied to clipboard
open fun stackWithin(minStack: Int, maxStack: Int): QueryType
Only match entities whose stack size is within the specified min/max range
Link copied to clipboard
abstract fun stream(): Stream<EntityType>
Returns this query as a stream.
Link copied to clipboard
open fun sumStacks(): Int
Executes this query and sums the stack of all matching items
Link copied to clipboard
open fun tiles(): TileQuery
Creates a new TileQuery
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 worlds(): WorldQuery
Creates a new WorldQuery