Interface ICraftingProcessOverride

All Known Implementing Classes:
CraftingProcessOverrideBrewingStand, CraftingProcessOverrideCraftingTable, CraftingProcessOverrideSmithingTable, CraftingProcessOverrideStonecutter

public interface ICraftingProcessOverride
A certain override for performing a crafting process.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    craft(Function<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,org.cyclops.integrateddynamics.api.part.PartPos> targetGetter, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredients, org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition recipe, 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.
  • Method Details

    • isApplicable

      boolean isApplicable(org.cyclops.integrateddynamics.api.part.PartPos target)
      Check if this override applies to the given target.
      Parameters:
      target - A target position.
      Returns:
      If this override is applicable.
    • craft

      boolean craft(Function<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,org.cyclops.integrateddynamics.api.part.PartPos> targetGetter, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredients, org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition recipe, ICraftingResultsSink resultsSink, boolean simulate)
      Start a crafting process with the given ingredients.
      Parameters:
      targetGetter - A function to get the target position.
      ingredients - The ingredients to insert.
      recipe - The recipe from which the ingredients were derived.
      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.
      Returns:
      If all instances could be inserted.