WorldQuery

A query to search over all available game worlds

See also

Functions

Link copied to clipboard
open fun activityContains(activity: Array<String>): WorldQuery
Only matches worlds whose activity contains one of the specified activities
Link copied to clipboard
open fun activityEquals(activity: Array<String>): WorldQuery
Only matches worlds whose activity equals one of the specified activities
Link copied to clipboard
Only matches worlds whose activity does not contain one of the specified activities
Link copied to clipboard
Only matches worlds whose activity does not equal one of the specified activities
Link copied to clipboard
protected fun asQueryType(): QueryType
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
protected open fun createSourceStream(): Stream<World>
Link copied to clipboard
Creates a new EquipmentQuery
Link copied to clipboard
open fun filter(filter: Predicate<EntityType>): QueryType
Applies the specified filter to this query.
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
Only matches worlds whose host address contains one of the specified addresses
Link copied to clipboard
Only matches worlds whose host address equals one of the specified addresses
Link copied to clipboard
Only matches worlds whose host address does not contain one of the specified addresses
Link copied to clipboard
Only matches worlds whose host address does not equal one of the specified addresses
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
Only match worlds that are dangerous
Link copied to clipboard
open fun isLowPing(): WorldQuery
Only accept worlds that have 'low' ping relative to other worlds
Link copied to clipboard
Only match worlds that are the main game
Link copied to clipboard
open fun isMembers(): WorldQuery
Only matches worlds that are members worlds
Link copied to clipboard
Only matches worlds that are non members worlds
Link copied to clipboard
Only matches worlds that do not contain all of the specified types
Link copied to clipboard
Only matches worlds that do not contain any of the specified types
Link copied to clipboard
Only match worlds that are not the current world
Link copied to clipboard
Only match worlds that are not dangerous
Link copied to clipboard
Only match worlds that are not the main game
Link copied to clipboard
Only match worlds where the requirements to enter are met
Link copied to clipboard
Only match worlds where the requirements to enter are not met
Link copied to clipboard
open fun isType(types: Array<World.Type>): WorldQuery
Only match worlds that contain all of the specified types
Link copied to clipboard
Only match worlds that contain any of the specified types param types the world types
Link copied to clipboard
Only match worlds that contain exactly the specified types
Link copied to clipboard
Only match worlds that do not contain exactly the specified types
Link copied to clipboard
Link copied to clipboard
Only match worlds with one of the specified locations
Link copied to clipboard
Only match worlds that do not have one of the specified locations
Link copied to clipboard
open fun maxPing(max: Int): WorldQuery
Only match worlds whose ping is less than or equal to the max ping
Link copied to clipboard
open fun maxPlayerCount(max: Int): WorldQuery
Only matches worlds whose player count is less than or equal to the max player count
Link copied to clipboard
Only match worlds whose total level requirement is at most the specified max threshold
Link copied to clipboard
open fun maxWorldNumber(max: Int): WorldQuery
Only matches worlds whose world number is less than or equal to the max world number
Link copied to clipboard
open fun minPing(min: Int): WorldQuery
Only match worlds whose ping is greater than or equal to the min ping
Link copied to clipboard
open fun minPlayerCount(min: Int): WorldQuery
Only matches worlds whose player count is greater than or equal to the min player count
Link copied to clipboard
Only match worlds whose total level requirement is at least the specified min threshold
Link copied to clipboard
open fun minWorldNumber(min: Int): WorldQuery
Only matches worlds whose world number is greater than or equal to the min world number
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
open fun sorted(comparator: Comparator<EntityType>): QueryType
Orders the query by the specified comparator.
Link copied to clipboard
open fun stream(): Stream<EntityType>
Returns this query as a stream.
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 worldNumberEquals(worldNumber: Array<Int>): WorldQuery
Only matches worlds with the specified world number
Link copied to clipboard
open fun worldNumberNotEquals(worldNumber: Array<Int>): WorldQuery
Only matches worlds that do not have the specified world number
Link copied to clipboard
open fun worlds(): WorldQuery
Creates a new WorldQuery