Class CraftingProcessOverrideBrewingStand
java.lang.Object
org.cyclops.integratedcrafting.core.crafting.processoverride.CraftingProcessOverrideBrewingStand
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleancraft(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.booleanisApplicable(org.cyclops.integrateddynamics.api.part.PartPos target) Check if this override applies to the given target.
-
Constructor Details
-
CraftingProcessOverrideBrewingStand
public CraftingProcessOverrideBrewingStand()
-
-
Method Details
-
isApplicable
public boolean isApplicable(org.cyclops.integrateddynamics.api.part.PartPos target) Description copied from interface:ICraftingProcessOverrideCheck if this override applies to the given target.- Specified by:
isApplicablein interfaceICraftingProcessOverride- 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:ICraftingProcessOverrideStart a crafting process with the given ingredients.- Specified by:
craftin interfaceICraftingProcessOverride- 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.
-