public interface ICraftingProcessOverride
| Modifier and Type | Method and Description |
|---|---|
boolean |
craft(java.util.function.Function<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,org.cyclops.integrateddynamics.api.part.PartPos> targetGetter,
org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredients,
ICraftingResultsSink resultsSink,
boolean simulate)
Start a crafting process with the given ingredients.
|
boolean |
isApplicable(org.cyclops.integrateddynamics.api.part.PartPos target)
Check if this override applies to the given target.
|
boolean isApplicable(org.cyclops.integrateddynamics.api.part.PartPos target)
target - A target position.boolean craft(java.util.function.Function<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,org.cyclops.integrateddynamics.api.part.PartPos> targetGetter,
org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredients,
ICraftingResultsSink resultsSink,
boolean simulate)
targetGetter - A function to get the target position.ingredients - The ingredients to insert.resultsSink - A sink where the ingredients can optionally be inserted into.
This should only be used if the processor does not have an internal storage.simulate - If insertion should be simulated.