WorldQuery

public class WorldQuery extends StreamBackedQuery<World, WorldQuery>

A query to search over all available game worlds

See also

Functions

activityContains
Link copied to clipboard
WorldQuery activityContains(Array<String> activity)
Only matches worlds whose activity contains one of the specified activities
activityEquals
Link copied to clipboard
WorldQuery activityEquals(Array<String> activity)
Only matches worlds whose activity equals one of the specified activities
activityNotContains
Link copied to clipboard
WorldQuery activityNotContains(Array<String> activity)
Only matches worlds whose activity does not contain one of the specified activities
activityNotEquals
Link copied to clipboard
WorldQuery activityNotEquals(Array<String> activity)
Only matches worlds whose activity does not equal one of the specified activities
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.
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
hostAddressContains
Link copied to clipboard
WorldQuery hostAddressContains(Array<String> address)
Only matches worlds whose host address contains one of the specified addresses
hostAddressEquals
Link copied to clipboard
WorldQuery hostAddressEquals(Array<String> address)
Only matches worlds whose host address equals one of the specified addresses
hostAddressNotContains
Link copied to clipboard
WorldQuery hostAddressNotContains(Array<String> address)
Only matches worlds whose host address does not contain one of the specified addresses
hostAddressNotEquals
Link copied to clipboard
WorldQuery hostAddressNotEquals(Array<String> address)
Only matches worlds whose host address does not equal one of the specified addresses
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
isDangerous
Link copied to clipboard
WorldQuery isDangerous()
Only match worlds that are dangerous
isLowPing
Link copied to clipboard
WorldQuery isLowPing()
Only accept worlds that have 'low' ping relative to other worlds
isMainGame
Link copied to clipboard
WorldQuery isMainGame()
Only match worlds that are the main game
isMembers
Link copied to clipboard
WorldQuery isMembers()
Only matches worlds that are members worlds
isNonMembers
Link copied to clipboard
WorldQuery isNonMembers()
Only matches worlds that are non members worlds
isNotAllTypes
Link copied to clipboard
WorldQuery isNotAllTypes(Array<World.Type> types)
Only matches worlds that do not contain all of the specified types
isNotAnyType
Link copied to clipboard
WorldQuery isNotAnyType(Array<World.Type> types)
Only matches worlds that do not contain any of the specified types
isNotCurrentWorld
Link copied to clipboard
WorldQuery isNotCurrentWorld()
Only match worlds that are not the current world
isNotDangerous
Link copied to clipboard
WorldQuery isNotDangerous()
Only match worlds that are not dangerous
isNotMainGame
Link copied to clipboard
WorldQuery isNotMainGame()
Only match worlds that are not the main game
isRequirementsMet
Link copied to clipboard
WorldQuery isRequirementsMet()
Only match worlds where the requirements to enter are met
isRequirementsNotMet
Link copied to clipboard
WorldQuery isRequirementsNotMet()
Only match worlds where the requirements to enter are not met
isType
Link copied to clipboard
WorldQuery isType(Array<World.Type> types)
Only match worlds that contain all of the specified types
isTypesAny
Link copied to clipboard
WorldQuery isTypesAny(Array<World.Type> types)
Only match worlds that contain any of the specified types param types the world types
isTypesExactly
Link copied to clipboard
WorldQuery isTypesExactly(Array<World.Type> types)
Only match worlds that contain exactly the specified types
isTypesNotExactly
Link copied to clipboard
WorldQuery isTypesNotExactly(Array<World.Type> types)
Only match worlds that do not contain exactly the specified types
itemDefinitions
Link copied to clipboard
static ItemDefinitionQuery itemDefinitions()
Creates a new ItemDefinitionQuery
locationEquals
Link copied to clipboard
WorldQuery locationEquals(Array<World.Location> location)
Only match worlds with one of the specified locations
locationNotEquals
Link copied to clipboard
WorldQuery locationNotEquals(Array<World.Location> location)
Only match worlds that do not have one of the specified locations
maxPing
Link copied to clipboard
WorldQuery maxPing(int max)
Only match worlds whose ping is less than or equal to the max ping
maxPlayerCount
Link copied to clipboard
WorldQuery maxPlayerCount(int max)
Only matches worlds whose player count is less than or equal to the max player count
maxTotalLevelRequirement
Link copied to clipboard
WorldQuery maxTotalLevelRequirement(int max)
Only match worlds whose total level requirement is at most the specified max threshold
maxWorldNumber
Link copied to clipboard
WorldQuery maxWorldNumber(int max)
Only matches worlds whose world number is less than or equal to the max world number
minPing
Link copied to clipboard
WorldQuery minPing(int min)
Only match worlds whose ping is greater than or equal to the min ping
minPlayerCount
Link copied to clipboard
WorldQuery minPlayerCount(int min)
Only matches worlds whose player count is greater than or equal to the min player count
minTotalLevelRequirement
Link copied to clipboard
WorldQuery minTotalLevelRequirement(int min)
Only match worlds whose total level requirement is at least the specified min threshold
minWorldNumber
Link copied to clipboard
WorldQuery minWorldNumber(int min)
Only matches worlds whose world number is greater than or equal to the min world number
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.
stream
Link copied to clipboard
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
worldNumberEquals
Link copied to clipboard
WorldQuery worldNumberEquals(Array<int> worldNumber)
Only matches worlds with the specified world number
worldNumberNotEquals
Link copied to clipboard
WorldQuery worldNumberNotEquals(Array<int> worldNumber)
Only matches worlds that do not have the specified world number
worlds
Link copied to clipboard
static WorldQuery worlds()
Creates a new WorldQuery