Object Search

  • All Implemented Interfaces:

    
    public class Search
    
                        
    • Constructor Detail

    • 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 UUID
        view - View of input slots
        searchQuery - 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 UUID
        view - View of input slots
        searchQuery - 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 UUID
        view - View of input slots
        searchQuery - 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 UUID
        view - 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 UUID
        view - input crafting gui's view
        searchQuery - 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 UUID
        view - input crafting gui's view
        searchQuery - 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 UUID
        view - input crafting gui's view
        searchQuery - 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 UUID
        view - input crafting gui's view
        Returns:

        SearchResult A result of a search.