mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
43 lines
1007 B
Java
43 lines
1007 B
Java
package mekanism.client.jei.machine.other;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
import mekanism.common.recipe.machines.MetallurgicInfuserRecipe;
|
|
import mezz.jei.api.recipe.BlankRecipeWrapper;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class MetallurgicInfuserRecipeWrapper extends BlankRecipeWrapper
|
|
{
|
|
public MetallurgicInfuserRecipe recipe;
|
|
|
|
public MetallurgicInfuserRecipeCategory category;
|
|
|
|
public MetallurgicInfuserRecipeWrapper(MetallurgicInfuserRecipe r, MetallurgicInfuserRecipeCategory c)
|
|
{
|
|
recipe = r;
|
|
category = c;
|
|
}
|
|
|
|
@Nonnull
|
|
@Override
|
|
public List<ItemStack> getInputs()
|
|
{
|
|
List<ItemStack> list = new ArrayList<ItemStack>();
|
|
list.add(recipe.getInput().inputStack);
|
|
list.addAll(MetallurgicInfuserRecipeCategory.getInfuseStacks(recipe.getInput().infuse.type));
|
|
|
|
return list;
|
|
}
|
|
|
|
@Nonnull
|
|
@Override
|
|
public List<ItemStack> getOutputs()
|
|
{
|
|
return Arrays.asList(recipe.getOutput().output);
|
|
}
|
|
}
|