Interface ICraftingJobIndex
- All Known Subinterfaces:
ICraftingJobIndexModifiable
- All Known Implementing Classes:
CraftingJobIndexDefault
public interface ICraftingJobIndex
Indexes crafting jobs by expected output.
-
Method Summary
Modifier and TypeMethodDescriptiongetCraftingJob(int craftingJobId) Get the crafting job with the given id.<T,M> Iterator<CraftingJob> getCraftingJobs(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> outputType, T output, M matchCondition) Find crafting jobs with the given output.
-
Method Details
-
getCraftingJobs
Collection<CraftingJob> getCraftingJobs()- Returns:
- All crafting jobs that are available.
-
getCraftingJobs
<T,M> Iterator<CraftingJob> getCraftingJobs(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> outputType, T output, M matchCondition) Find crafting jobs 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 crafting jobs that have the given output.
-
getCraftingJob
Get the crafting job with the given id.- Parameters:
craftingJobId- A crafting job id.- Returns:
- A crafting job or null.
-