Object Search
-
- All Implemented Interfaces:
public class Search
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSearch.SearchResultA result of Search.search.
public final classSearch.SearchQueryQuery of searching
-
Method Summary
Modifier and Type Method Description final static CompletableFuture<Search.SearchResult>asyncSearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes, Explainer explainer)Returns a CompletableFuture that performs asynchronous searches using the input items and recipes. final static CompletableFuture<Search.SearchResult>asyncSearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes)Returns a CompletableFuture that performs asynchronous searches using the input items and recipes. final static CompletableFuture<Search.SearchResult>asyncSearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery)Returns a CompletableFuture that performs asynchronous searches using the input items and recipes. final static CompletableFuture<Search.SearchResult>asyncSearch(UUID crafterId, CraftView view)Returns a CompletableFuture that performs asynchronous searches using the input items and recipes. final static Search.SearchResultsearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes, Explainer explainer)We will perform recipe searches using a synchronous process. final static Search.SearchResultsearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes)We will perform recipe searches using a synchronous process. final static Search.SearchResultsearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery)We will perform recipe searches using a synchronous process. final static Search.SearchResultsearch(UUID crafterId, CraftView view)We will perform recipe searches using a synchronous process. -
-
Method Detail
-
asyncSearch
@JvmOverloads() final static CompletableFuture<Search.SearchResult> asyncSearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes, Explainer explainer)
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).
- Parameters:
crafterId- Crafter UUIDview- View of input slotssearchQuery- Query of searching (since 5.0.sourceRecipes- Search target recipes (default = CustomCrafterAPI.getRecipes)explainer- Logs container instance- Returns:
CompletableFuture Future task of a search result
- Since:
5.0.17
-
asyncSearch
@JvmOverloads() final static CompletableFuture<Search.SearchResult> asyncSearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes)
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).
- Parameters:
crafterId- Crafter UUIDview- View of input slotssearchQuery- Query of searching (since 5.0.sourceRecipes- Search target recipes (default = CustomCrafterAPI.getRecipes)- Returns:
CompletableFuture Future task of a search result
- Since:
5.0.17
-
asyncSearch
@JvmOverloads() final static CompletableFuture<Search.SearchResult> asyncSearch(UUID crafterId, CraftView view, Search.SearchQuery searchQuery)
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).
- Parameters:
crafterId- Crafter UUIDview- View of input slotssearchQuery- Query of searching (since 5.0.- Returns:
CompletableFuture Future task of a search result
- Since:
5.0.17
-
asyncSearch
@JvmOverloads() final static CompletableFuture<Search.SearchResult> asyncSearch(UUID crafterId, CraftView view)
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).
- Parameters:
crafterId- Crafter UUIDview- View of input slots- Returns:
CompletableFuture Future task of a search result
- Since:
5.0.17
-
search
@JvmOverloads() final static Search.SearchResult search(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes, Explainer explainer)
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.
- Parameters:
crafterId- a crafter's UUIDview- input crafting gui's viewsearchQuery- Query that controls search behaviour (search mode and vanilla search mode).sourceRecipes- A list of searched recipes.- Returns:
SearchResult A result of a search.
-
search
@JvmOverloads() final static Search.SearchResult search(UUID crafterId, CraftView view, Search.SearchQuery searchQuery, List<CRecipe> sourceRecipes)
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.
- Parameters:
crafterId- a crafter's UUIDview- input crafting gui's viewsearchQuery- Query that controls search behaviour (search mode and vanilla search mode).sourceRecipes- A list of searched recipes.- Returns:
SearchResult A result of a search.
-
search
@JvmOverloads() final static Search.SearchResult search(UUID crafterId, CraftView view, Search.SearchQuery searchQuery)
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.
- Parameters:
crafterId- a crafter's UUIDview- input crafting gui's viewsearchQuery- Query that controls search behaviour (search mode and vanilla search mode).- Returns:
SearchResult A result of a search.
-
search
@JvmOverloads() final static Search.SearchResult search(UUID crafterId, CraftView view)
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.
- Parameters:
crafterId- a crafter's UUIDview- input crafting gui's view- Returns:
SearchResult A result of a search.
-
-
-
-