Interface RecipeLoadResult


public interface RecipeLoadResult
Represents a result of the CauldronRecipeRegistry.loadCauldronRecipes(Alchema, File) asynchronous recipe loading.
  • Method Summary

    Modifier and Type Method Description
    @NotNull java.util.List<@NotNull RecipeLoadFailureReport> getFailures()
    Get an immutable List of all recipes that failed to load, if any.
    int getNative()
    Get the amount of recipes loaded natively from Alchema's file system.
    int getThirdParty()
    Get the amount of recipes loaded from third-party plugins.
    long getTimeToComplete()
    Get the time, in milliseconds, it took for this process to complete.
    default int getTotal()
    Get the amount of total recipes loaded.
  • Method Details

    • getNative

      int getNative()
      Get the amount of recipes loaded natively from Alchema's file system.
      Returns:
      the amount of native recipes loaded
    • getThirdParty

      int getThirdParty()
      Get the amount of recipes loaded from third-party plugins.
      Returns:
      the amount of third-party recipes loaded
    • getTotal

      default int getTotal()
      Get the amount of total recipes loaded.
      Returns:
      the total recipe count
    • getFailures

      @NotNull @NotNull java.util.List<@NotNull RecipeLoadFailureReport> getFailures()
      Get an immutable List of all recipes that failed to load, if any.
      Returns:
      the failures. If none, an empty list is returned
    • getTimeToComplete

      long getTimeToComplete()
      Get the time, in milliseconds, it took for this process to complete.
      Returns:
      the completion time