public interface Query
An inventory query. See QueryTypes for possible types of queries.
  • Method Details

    • 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 with Inventory.union(org.spongepowered.api.item.inventory.Inventory)
      Parameters:
      queries - The queries to combine
      Returns:
      The new query
    • execute

      Inventory execute(Inventory inventory)
      Executes this query on given inventory
      Parameters:
      inventory - The query
      Returns:
      The query result