Interface Query
-
public interface Query
An inventory query. SeeQueryTypes
for possible types of queries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Query.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static 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.Inventory
execute(Inventory inventory)
Executes this query on given inventorystatic Query
orQueries(Query... queries)
Returns a new query matching any of the queries.
-
-
-
Method Detail
-
builder
static Query.Builder builder()
Returns the query builder.- Returns:
- The query builder
-
orQueries
static Query orQueries(Query... queries)
Returns a new query matching any of the queries.- Parameters:
queries
- The queries to match- Returns:
- The new query
-
andQueries
static Query andQueries(Query... queries)
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
-
-