search

fun search(crafterId: UUID, view: CraftView, searchQuery: Search.SearchQuery = SearchQuery.DEFAULT, sourceRecipes: List<CRecipe> = CustomCrafterAPI.getRecipes()): Search.SearchResult

We will perform recipe searches using a synchronous process.

If there are many recipes to search or if recipes with complex search conditions exist, it may cause delays in the server's game loop and a decrease in TPS.

Return

SearchResult A result of a search.

Parameters

crafterId

a crafter's UUID

view

input crafting gui's view

searchQuery

Query that controls search behaviour (search mode and vanilla search mode). (default = SearchQuery.DEFAULT)

sourceRecipes

A list of searched recipes. (default = CustomCrafterAPI.getRecipes() / since 5.0.10)

Throws

Throws when 'view.materials' is empty or their size out of range 1 to 36.