mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
40 lines
1.2 KiB
Java
40 lines
1.2 KiB
Java
package mekanism.client.jei.machine.other;
|
|
|
|
import mekanism.client.jei.machine.BaseRecipeWrapper;
|
|
import mekanism.common.recipe.machines.MetallurgicInfuserRecipe;
|
|
import mezz.jei.api.ingredients.IIngredients;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
public class MetallurgicInfuserRecipeWrapper extends BaseRecipeWrapper
|
|
{
|
|
public MetallurgicInfuserRecipe recipe;
|
|
|
|
public MetallurgicInfuserRecipeCategory category;
|
|
|
|
public MetallurgicInfuserRecipeWrapper(MetallurgicInfuserRecipe r, MetallurgicInfuserRecipeCategory c)
|
|
{
|
|
recipe = r;
|
|
category = c;
|
|
}
|
|
|
|
@Override
|
|
public void getIngredients(IIngredients ingredients)
|
|
{
|
|
List<ItemStack> inputStacks = Arrays.asList(recipe.recipeInput.inputStack);
|
|
List<ItemStack> infuseStacks = MetallurgicInfuserRecipeCategory.getInfuseStacks(recipe.getInput().infuse.type);
|
|
|
|
ingredients.setInput(ItemStack.class, recipe.recipeInput.inputStack);
|
|
ingredients.setInputLists(ItemStack.class, Arrays.asList(inputStacks, infuseStacks));
|
|
ingredients.setOutput(ItemStack.class, recipe.recipeOutput.output);
|
|
}
|
|
|
|
@Override
|
|
public MetallurgicInfuserRecipeCategory getCategory()
|
|
{
|
|
return category;
|
|
}
|
|
}
|