Class CraftingProcessOverrideStonecutter

java.lang.Object
org.cyclops.integratedcrafting.core.crafting.processoverride.CraftingProcessOverrideStonecutter
All Implemented Interfaces:
ICraftingProcessOverride

public class CraftingProcessOverrideStonecutter extends Object implements ICraftingProcessOverride
A crafting process override for stone cutters.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CraftingProcessOverrideStonecutter

      public CraftingProcessOverrideStonecutter()
  • Method Details

    • isApplicable

      public boolean isApplicable(org.cyclops.integrateddynamics.api.part.PartPos target)
      Description copied from interface: ICraftingProcessOverride
      Check if this override applies to the given target.
      Specified by:
      isApplicable in interface ICraftingProcessOverride
      Parameters:
      target - A target position.
      Returns:
      If this override is applicable.
    • craft

      public 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)
      Description copied from interface: ICraftingProcessOverride
      Start a crafting process with the given ingredients.
      Specified by:
      craft in interface ICraftingProcessOverride
      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.