Interface Query
-
public interface QueryAn inventory query. SeeQueryTypesfor possible types of queries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static QueryandQueries(Query... queries)Returns a new query which combines the queries in given order withInventory.union(org.spongepowered.api.item.inventory.Inventory)static Query.Builderbuilder()Returns the query builder.Inventoryexecute(Inventory inventory)Executes this query on given inventorystatic QueryorQueries(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
-
-