Query
An interface for querying entities. Each Query instance should only be executed once. Queries are modified in-place when calling methods such as filter. Therefore the expression query.filter(x -> true) == query will always be true. No methods will return null unless otherwise indicated within that method's documentation. Queries are lazily evaluated.
Parameters
<EntityType>
the entity type to query
<QueryType>
the query type
Inheritors
Functions
Link copied to clipboard
Creates a new EquipmentQuery
Link copied to clipboard
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
Executes this query and passes each result to the specified consumer
Link copied to clipboard
Creates a new GameObjectQuery
Link copied to clipboard
Creates a new GrandExchangeOfferQuery
Link copied to clipboard
Creates a new GraphicObjectQuery
Link copied to clipboard
Creates a new GroundItemQuery
Link copied to clipboard
Creates a new InventoryQuery
Link copied to clipboard
Creates a new ItemDefinitionQuery
Link copied to clipboard
Creates a new PlayerQuery
Link copied to clipboard
Creates a new ProjectileQuery
Link copied to clipboard
Creates a new ShopItemQuery
Link copied to clipboard
Orders the query by the specified comparator.
Link copied to clipboard
Returns this query as a stream.
Link copied to clipboard
Executes this query, and gets the results
Link copied to clipboard
Creates a new TradeQuery
Link copied to clipboard
Creates a new WidgetQuery
Link copied to clipboard
Creates a new WorldQuery