Package masecla.modrinth4j.model.search
Class FacetCollection
java.lang.Object
masecla.modrinth4j.model.search.FacetCollection
Represents a collection of facets.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPossibleConditions(Facet... facets) This method will add a block which will be OR'd.toString()Returns a string representation of this object.
-
Constructor Details
-
FacetCollection
public FacetCollection()
-
-
Method Details
-
addPossibleConditions
This method will add a block which will be OR'd. If you want to use AND, call this method multiple times. From the Modrinth documentation: Operators In search, the main operators are AND and OR. The others are not supported as of now. OR All elements in a single array after the first one are considered in a single OR block. For example, the search [["versions:1.16.5", "versions:1.17.1"]] translates to Projects that supports 1.16.5 OR 1.17.1 AND All arrays in the top-level one are considered in a single AND block. For example, the search [["versions:1.16.5"], ["project_type:modpack"]] translates to Projects that support 1.16.5 AND are modpacks For more information on how to use this, please see the Modrinth documentation here: https://docs.modrinth.com/docs/tutorials/api_search/- Parameters:
facets- - The block of facets to add to the collection
-
toString
Returns a string representation of this object.
-