Class CraftingProcessOverrideBrewingStand

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

public class CraftingProcessOverrideBrewingStand extends Object implements ICraftingProcessOverride
A crafting process override for brewing stands. This makes it so that items can be inserted from any slot, instead of the annoying side restrictions that vanilla adds.
  • 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, CraftingJob craftingJob, 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

    • CraftingProcessOverrideBrewingStand

      public CraftingProcessOverrideBrewingStand()
  • 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, CraftingJob craftingJob, 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.
      craftingJob - The running crafting job (or pending job if simulating).
      simulate - If insertion should be simulated.
      Returns:
      If all instances could be inserted.