2016-03-18 04:07:49 -07:00
|
|
|
package WayofTime.bloodmagic.compat.jei.alchemyArray;
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
|
2016-12-12 19:56:36 -08:00
|
|
|
import mezz.jei.api.ingredients.IIngredients;
|
2016-03-18 04:07:49 -07:00
|
|
|
import mezz.jei.api.recipe.BlankRecipeWrapper;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class AlchemyArrayCraftingRecipeJEI extends BlankRecipeWrapper
|
|
|
|
{
|
|
|
|
@Nonnull
|
2016-05-01 08:35:07 -07:00
|
|
|
private final List<ItemStack> inputs;
|
2016-03-25 10:07:30 -04:00
|
|
|
|
|
|
|
@Nullable
|
|
|
|
private final ItemStack catalyst;
|
2016-03-18 04:07:49 -07:00
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
private final ItemStack output;
|
|
|
|
|
2016-03-25 10:07:30 -04:00
|
|
|
public AlchemyArrayCraftingRecipeJEI(@Nonnull List<ItemStack> input, @Nullable ItemStack catalyst, @Nonnull ItemStack output)
|
2016-03-18 04:07:49 -07:00
|
|
|
{
|
2016-03-25 10:07:30 -04:00
|
|
|
this.inputs = input;
|
|
|
|
this.catalyst = catalyst;
|
2016-03-18 04:07:49 -07:00
|
|
|
this.output = output;
|
|
|
|
}
|
|
|
|
|
2016-03-25 10:07:30 -04:00
|
|
|
public ItemStack getCatalyst()
|
|
|
|
{
|
|
|
|
return catalyst;
|
2016-03-18 04:07:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-12-12 19:56:36 -08:00
|
|
|
public void getIngredients(IIngredients ingredients) {
|
|
|
|
ingredients.setOutputs(ItemStack.class, Collections.singletonList(output));
|
|
|
|
ingredients.setInputs(ItemStack.class, inputs);
|
2016-03-18 04:07:49 -07:00
|
|
|
}
|
|
|
|
}
|