Interface Query
public interface Query
An inventory query. See
QueryTypes
for possible types of queries.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Query
andQueries
(Query... queries) Returns a new query which combines the queries in given order withInventory.union(org.spongepowered.api.item.inventory.Inventory)
static Query.Builder
builder()
Returns the query builder.Executes this query on given inventorystatic Query
Returns a new query matching any of the queries.
-
Method Details
-
builder
Returns the query builder.- Returns:
- The query builder
-
orQueries
Returns a new query matching any of the queries.- Parameters:
queries
- The queries to match- Returns:
- The new query
-
andQueries
Returns a new query which combines the queries in given order withInventory.union(org.spongepowered.api.item.inventory.Inventory)
- Parameters:
queries
- The queries to combine- Returns:
- The new query
-
execute
Executes this query on given inventory- Parameters:
inventory
- The query- Returns:
- The query result
-