Interface IRecipeIndex

All Known Subinterfaces:
IRecipeIndexModifiable
All Known Implementing Classes:
RecipeIndexDefault

public interface IRecipeIndex
Indexes recipes by output.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition>
     
    <T, M> Iterator<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition>
    getRecipes(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> outputType, T output, M matchCondition)
    Find recipes with the given output.
  • Method Details

    • getRecipes

      Set<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> getRecipes()
      Returns:
      All recipes that are available.
    • getRecipes

      <T, M> Iterator<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> getRecipes(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> outputType, T output, M matchCondition)
      Find recipes with the given output.
      Type Parameters:
      T - The instance type.
      M - The matching condition parameter, may be Void.
      Parameters:
      outputType - The recipe component type.
      output - An output ingredient instance.
      matchCondition - A condition under which the matching should be done.
      Returns:
      An iterator of the recipes that have the given output.