Package masecla.modrinth4j.model.search
Class Facet
java.lang.Object
masecla.modrinth4j.model.search.Facet
Represents a facet.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FacetCreates a new category facet.static FacetCreates a new license facet.static FacetprojectType(ProjectType type) Creates a new project type facet.toString()Returns the facet as a string.static FacetCreates a new version facet.
-
Constructor Details
-
Facet
public Facet()
-
-
Method Details
-
toString
Returns the facet as a string. -
category
Creates a new category facet.- Parameters:
value- The category value.- Returns:
- The category facet.
-
version
Creates a new version facet.- Parameters:
value- The version value.- Returns:
- The version facet.
-
license
Creates a new license facet.- Parameters:
value- The license value.- Returns:
- The license facet.
-
projectType
Creates a new project type facet.- Parameters:
type- The project type.- Returns:
- The project type facet.
-