BankQuery

public class BankQuery extends StreamBackedQuery<Item, BankQuery> implements ItemQuery<Item, BankQuery>

A query to search over entities of type Item inside of your bank. If your bank is not open, it will query over the data inside entries

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
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
distinctById
Link copied to clipboard
QueryType distinctById()
Removes duplicate entities from this query based on the id (keeps the first match, removes the rest)
distinctByName
Link copied to clipboard
QueryType distinctByName()
Removes duplicate entities from this query based on the name (keeps the first match, removes the rest)
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.
findClosestToMouse
Link copied to clipboard
Optional<EntityTypefindClosestToMouse()
Executes this query and gets the closest item to the mouse
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
idEquals
Link copied to clipboard
QueryType idEquals(Array<int> id)
Only match entities with the specified id
idNotEquals
Link copied to clipboard
QueryType idNotEquals(Array<int> id)
Only match entities who do not have the specified id
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
inventory
Link copied to clipboard
static InventoryQuery inventory()
Creates a new InventoryQuery
isAny
Link copied to clipboard
boolean isAny()
Executes this query and checks if any result exists
isBankable
Link copied to clipboard
QueryType isBankable()
Only match items that are bankable
isGrandExchangeTradeable
Link copied to clipboard
QueryType isGrandExchangeTradeable()
Only match items that can be traded on the grand exchange
isHovering
Link copied to clipboard
QueryType isHovering()
Only match entities that are being hovered
isMembersOnly
Link copied to clipboard
QueryType isMembersOnly()
Only match items that are members only
isNotBankable
Link copied to clipboard
QueryType isNotBankable()
Only match items that are not bankable
isNoted
Link copied to clipboard
QueryType isNoted()
Only match items that are noted
isNotGrandExchangeTradeable
Link copied to clipboard
QueryType isNotGrandExchangeTradeable()
Only match items that cannot be traded on the grand exchange
isNotHovering
Link copied to clipboard
QueryType isNotHovering()
Only match entities that are not being hovered
isNotMembersOnly
Link copied to clipboard
QueryType isNotMembersOnly()
Only match items that are not members only
isNotNoted
Link copied to clipboard
QueryType isNotNoted()
Only match items that are not noted
isNotStackable
Link copied to clipboard
QueryType isNotStackable()
Only match items that are not stackable
isNotVisible
Link copied to clipboard
QueryType isNotVisible()
Only match clickable entities that are not visible
isStackable
Link copied to clipboard
QueryType isStackable()
Only match items that are stackable
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
maxPrice
Link copied to clipboard
QueryType maxPrice(int max)
Only match items that have at most the specified price.
maxStack
Link copied to clipboard
QueryType maxStack(int maxStack)
Only match entities with at most the specified stack size
maxStackPrice
Link copied to clipboard
QueryType maxStackPrice(int max)
Only match items that have at most the specified stack price (stack price = price * item stack).
minPrice
Link copied to clipboard
QueryType minPrice(int min)
Only match items that have at least the specified price.
minStack
Link copied to clipboard
QueryType minStack(int minStack)
Only match entities with at least the specified stack size
minStackPrice
Link copied to clipboard
QueryType minStackPrice(int min)
Only match items that have at least the stack price (stack price = price * item stack).
nameContains
Link copied to clipboard
QueryType nameContains(Array<String> names)
Only match entities whose name contains any of the specified names, case insensitive
nameEquals
Link copied to clipboard
QueryType nameEquals(Array<String> names)
Only match entities with the specified names, case sensitive
nameNotContains
Link copied to clipboard
QueryType nameNotContains(Array<String> names)
Only match entities whose name does not contains any of the specified names, case insensitive
nameNotEquals
Link copied to clipboard
QueryType nameNotEquals(Array<String> names)
Only match entities whose name does not equal any of the specified names, case sensitive
nameNotStartsWith
Link copied to clipboard
QueryType nameNotStartsWith(Array<String> names)
Only match entities whose name does not start with any of the specified names, case insensitive
nameStartsWith
Link copied to clipboard
QueryType nameStartsWith(Array<String> names)
Only match entities whose name starts with any of the specified names, case insensitive
npcs
Link copied to clipboard
static NpcQuery npcs()
Creates a new NpcQuery
players
Link copied to clipboard
static PlayerQuery players()
Creates a new PlayerQuery
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.
sortedByDistanceToMouse
Link copied to clipboard
QueryType sortedByDistanceToMouse()
Sorts this query by distance to the mouse, with closer entities first
stackEquals
Link copied to clipboard
QueryType stackEquals(Array<int> stack)
Only match entities who have the specified stack
stackNotEquals
Link copied to clipboard
QueryType stackNotEquals(Array<int> stack)
Only match entities who do not have the specified stack
stackWithin
Link copied to clipboard
QueryType stackWithin(int minStack, int maxStack)
Only match entities whose stack size is within the specified min/max range
stream
Link copied to clipboard
Stream<EntityTypestream()
Returns this query as a stream.
sumStacks
Link copied to clipboard
int sumStacks()
Executes this query and sums the stack of all matching items
tiles
Link copied to clipboard
static TileQuery tiles()
Creates a new TileQuery
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
worlds
Link copied to clipboard
static WorldQuery worlds()
Creates a new WorldQuery