search
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.
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 request. If you send one that contains invalid params, returns null.
Parameters
crafter ID
a crafter's UUID
view
input crafting gui's view
force Search Vanilla Recipe
Force to search vanilla recipes or not.(true=force, false=not). The default is true.
only First
get only first matched custom recipe and mapped. (default = false)
source Recipes
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.