package micdoodle8.mods.galacticraft.planets.asteroids.client.jei.astrominer;
import mezz.jei.api.recipe.BlankRecipeWrapper;
import mezz.jei.api.recipe.wrapper.ICraftingRecipeWrapper;
import micdoodle8.mods.galacticraft.api.recipe.INasaWorkbenchRecipe;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class AstroMinerRecipeWrapper extends BlankRecipeWrapper implements ICraftingRecipeWrapper
{
@Nonnull
private final INasaWorkbenchRecipe recipe;
public AstroMinerRecipeWrapper(@Nonnull INasaWorkbenchRecipe recipe)
{
this.recipe = recipe;
}
@Nonnull
@Override
public List getInputs()
{
List<ItemStack> list = new ArrayList<>();
list.addAll(recipe.getRecipeInput().values());
return list;
}
@Nonnull
@Override
public List<ItemStack> getOutputs()
{
return Collections.singletonList(recipe.getRecipeOutput());
}
}