ProjectileQuery

public class ProjectileQuery extends StreamBackedQuery<Projectile, ProjectileQuery> implements PositionableQuery<Projectile, ProjectileQuery>

A query to search over entities of type Projectile

See also

Functions

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.
findClosest
Link copied to clipboard
Optional<EntityTypefindClosest()
Executes this query and gets the closest matching entity to our player
findClosestByPathDistance
Link copied to clipboard
Optional<EntityTypefindClosestByPathDistance()
Executes this query and gets the closest matching entity to our player, based on path distance (the distance it would take to actually walk there based on the surrounding obstacles/collision)
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()
graphicIdEquals
Link copied to clipboard
ProjectileQuery graphicIdEquals(Array<int> graphicId)
Only match projectiles with the specified graphic ids
graphicIdNotEquals
Link copied to clipboard
ProjectileQuery graphicIdNotEquals(Array<int> graphicId)
Only match projectiles which do not have the specified graphic ids
graphicObjects
Link copied to clipboard
static GraphicObjectQuery graphicObjects()
Creates a new GraphicObjectQuery
groundItems
Link copied to clipboard
static GroundItemQuery groundItems()
Creates a new GroundItemQuery
hasLineOfSightTo
Link copied to clipboard
QueryType hasLineOfSightTo(Positionable other)
Unmaintained.
inArea
Link copied to clipboard
QueryType inArea(Array<Area> area)
Only match entities in the specified areas
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
isInLineOfSight
Link copied to clipboard
QueryType isInLineOfSight()
Unmaintained.
QueryType isInLineOfSight(Positionable source)
Unmaintained.
isMoving
Link copied to clipboard
ProjectileQuery isMoving()
Only match projectiles that are moving
isNotMoving
Link copied to clipboard
ProjectileQuery isNotMoving()
Only match projectiles that are not moving
isNotTargetingMe
Link copied to clipboard
ProjectileQuery isNotTargetingMe()
Only match projectiles that are not targeting our player
isOnMinimap
Link copied to clipboard
QueryType isOnMinimap()
Only match entities that are on the minimap
isReachable
Link copied to clipboard
QueryType isReachable()
Only match entities that are reachable via canReach obtained from createMap
isTargetingMe
Link copied to clipboard
ProjectileQuery isTargetingMe()
Only match projectiles that are targeting our player
itemDefinitions
Link copied to clipboard
static ItemDefinitionQuery itemDefinitions()
Creates a new ItemDefinitionQuery
maxDistance
Link copied to clipboard
QueryType maxDistance(double maxDistance)
Only match entities who are at most the specified distance away from our player
QueryType maxDistance(Positionable source, double maxDistance)
Only match entities who are at most the specified distance away from the specified location
maxPathDistance
Link copied to clipboard
QueryType maxPathDistance(double maxDistance)
Only match entities who are at most the specified path distance away from our player (the distance it would take to actually walk there based on the surrounding obstacles/collision)
minDistance
Link copied to clipboard
QueryType minDistance(double min)
Only match entities who are at least the specified distance away from our player
QueryType minDistance(Positionable source, double min)
Only match entities who are at least the specified distance away from the specified location
minPathDistance
Link copied to clipboard
QueryType minPathDistance(double min)
Only match entities who are at least the specified path distance away from our player (the distance it would take to actually walk there based on the surrounding obstacles/collision)
notInArea
Link copied to clipboard
QueryType notInArea(Array<Area> area)
Only match entities who are not in any of the specified areas
npcs
Link copied to clipboard
static NpcQuery npcs()
Creates a new NpcQuery
orientationEquals
Link copied to clipboard
ProjectileQuery orientationEquals(Array<int> orientation)
Only match projectiles with the specified orientations
orientationNotEquals
Link copied to clipboard
ProjectileQuery orientationNotEquals(Array<int> orientation)
Only match projectiles which do not have the specified orientations
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.
sortedByDistance
Link copied to clipboard
QueryType sortedByDistance()
Sorts the entities by their distance to our player, with the closest appearing first
QueryType sortedByDistance(Positionable source)
Sorts the entities by their distance to the specified location, with the closest appearing first
sortedByPathDistance
Link copied to clipboard
QueryType sortedByPathDistance()
Sorts the entities by their path distance (the distance it would take to actually walk there based on the surrounding obstacles/collision)
stream
Link copied to clipboard
Stream<EntityTypestream()
Returns this query as a stream.
tileEquals
Link copied to clipboard
QueryType tileEquals(Array<Positionable> positions)
Only matches entities at the specified positions
tileNotEquals
Link copied to clipboard
QueryType tileNotEquals(Array<Positionable> positions)
Only match entities who are not at any of the specified positions
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