Search

object Search

Types

Link copied to clipboard
class SearchQuery @JvmOverloads constructor(val searchMode: Search.SearchQuery.SearchMode, val vanillaSearchMode: Search.SearchQuery.VanillaSearchMode, val asyncContext: AsyncContext? = null)

Query of searching

Link copied to clipboard

A result of Search.search.

Functions

Link copied to clipboard
fun asyncSearch(crafterID: UUID, view: CraftView, query: Search.SearchQuery = SearchQuery.ASYNC_DEFAULT, sourceRecipes: List<CRecipe> = CustomCrafterAPI.getRecipes()): CompletableFuture<Search.SearchResult>

Returns a CompletableFuture that performs asynchronous searches using the input items and recipes.

Link copied to clipboard
fun search(crafterID: UUID, view: CraftView, forceSearchVanillaRecipe: Boolean = true, onlyFirst: Boolean = false, sourceRecipes: List<CRecipe> = CustomCrafterAPI.getRecipes()): Search.SearchResult

We will perform recipe searches using a synchronous process.