ActionableQuery

public interface ActionableQuery<EntityType extends Actionable, QueryType extends Query<EntityType, QueryType>> implements Query<EntityType, QueryType>

A query to search over entities with actions

Parameters

<EntityType>

the entity type

<QueryType>

the query type

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
equipment
Link copied to clipboard
static EquipmentQuery equipment()
Creates a new EquipmentQuery
filter
Link copied to clipboard
abstract 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
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
itemDefinitions
Link copied to clipboard
static ItemDefinitionQuery itemDefinitions()
Creates a new ItemDefinitionQuery
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
abstract QueryType sorted(Comparator<EntityType> comparator)
Orders the query by the specified comparator.
stream
Link copied to clipboard
abstract Stream<EntityTypestream()
Returns this query as a stream.
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

Inheritors

NpcQuery
Link copied to clipboard
ItemQuery
Link copied to clipboard
GameObjectQuery
Link copied to clipboard
GroundItemQuery
Link copied to clipboard
WidgetQuery
Link copied to clipboard