asyncSearch

fun asyncSearch(crafterID: UUID, view: CraftView, sourceRecipes: List<CRecipe> = CustomCrafterAPI.getRecipes()): CompletableFuture<Search.SearchResult>

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

Since almost all processing in this search is done asynchronously, exceptions will occur when accessing the world or entities (due to Bukkit API's asynchronous processing limitations).

Return

CompletableFuture Future task of a search result

Since

5.0.17

Parameters

crafterID

Crafter UUID

view

View of input slots

sourceRecipes

Search target recipes (default = CustomCrafterAPI.getRecipes)