Class ItemToItemRecipeHandler
java.lang.Object
org.cyclops.integratedmekanismics.capability.recipehandler.MekanismRecipeHandler<mekanism.api.recipes.ItemStackToItemStackRecipe>
org.cyclops.integratedmekanismics.capability.recipehandler.ItemToItemRecipeHandler
- All Implemented Interfaces:
org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeHandler
public class ItemToItemRecipeHandler
extends MekanismRecipeHandler<mekanism.api.recipes.ItemStackToItemStackRecipe>
-
Field Summary
Fields inherited from class org.cyclops.integratedmekanismics.capability.recipehandler.MekanismRecipeHandler
CACHED_RECIPES
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ItemToItemRecipeHandler
(mekanism.common.recipe.IMekanismRecipeTypeProvider<mekanism.api.recipes.ItemStackToItemStackRecipe, ?> recipeType, Supplier<net.minecraft.world.level.Level> levelSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doesRecipeMatchInput
(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients input) boolean
isValidSizeInput
(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?> ingredientComponent, int size) protected void
recipeToInputs
(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, List<org.cyclops.commoncapabilities.api.capability.recipehandler.IPrototypedIngredientAlternatives<?, ?>>> inputs) protected void
recipeToOutputs
(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, List<?>> outputs) protected void
recipeToOutputsSimulated
(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients input, Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, List<?>> outputs) Methods inherited from class org.cyclops.integratedmekanismics.capability.recipehandler.MekanismRecipeHandler
getLevel, getPrototypesFromChemicalIngredient, getPrototypesFromFluidIngredient, getPrototypesFromItemIngredient, getRecipeInputComponents, getRecipeOutputComponents, getRecipes, getRecipesUncached, getRecipeType, isValid, simulate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeHandler
simulate
-
Constructor Details
-
ItemToItemRecipeHandler
protected ItemToItemRecipeHandler(mekanism.common.recipe.IMekanismRecipeTypeProvider<mekanism.api.recipes.ItemStackToItemStackRecipe, ?> recipeType, Supplier<net.minecraft.world.level.Level> levelSupplier)
-
-
Method Details
-
isValidSizeInput
public boolean isValidSizeInput(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?> ingredientComponent, int size) -
recipeToInputs
protected void recipeToInputs(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, List<org.cyclops.commoncapabilities.api.capability.recipehandler.IPrototypedIngredientAlternatives<?, ?>>> inputs) - Specified by:
recipeToInputs
in classMekanismRecipeHandler<mekanism.api.recipes.ItemStackToItemStackRecipe>
-
recipeToOutputs
protected void recipeToOutputs(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, List<?>> outputs) - Specified by:
recipeToOutputs
in classMekanismRecipeHandler<mekanism.api.recipes.ItemStackToItemStackRecipe>
-
recipeToOutputsSimulated
protected void recipeToOutputsSimulated(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients input, Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, List<?>> outputs) - Specified by:
recipeToOutputsSimulated
in classMekanismRecipeHandler<mekanism.api.recipes.ItemStackToItemStackRecipe>
-
doesRecipeMatchInput
protected boolean doesRecipeMatchInput(mekanism.api.recipes.ItemStackToItemStackRecipe recipe, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients input) - Specified by:
doesRecipeMatchInput
in classMekanismRecipeHandler<mekanism.api.recipes.ItemStackToItemStackRecipe>
-