package com.witchworks.api.recipe;

import net.minecraft.item.ItemStack;
import net.minecraft.util.Tuple;

import static net.minecraftforge.oredict.OreDictionary.WILDCARD_VALUE;

/**
 * This class was created by Joseph on 7/21/2017..
 * It's distributed as part of Witchworks under
 * the MIT license.
 */

public class OvenRecipe {

	private final ItemStack output1, output2;
	private final ItemStack needed, jar;

	public OvenRecipe(ItemStack needed, ItemStack jar, ItemStack output1, ItemStack output2) {
		this.needed = needed;
		this.jar = jar;
		this.output1 = output1;
		this.output2 = output2;
	}

	public ItemStack getNeeded() {
		return needed.copy();
	}

	public ItemStack getJar() {
		return jar.copy();
	}

	public Tuple<ItemStack, ItemStack> getOutputs() {
		return new Tuple<>(output1.copy(), output2.copy());
	}

	public boolean matches(ItemStack input) {
		return input != null && needed != null && needed.getItem() == input.getItem() && (needed.getItemDamage() == input.getItemDamage()
				|| input.getItemDamage() == WILDCARD_VALUE);
	}
}
@@ -405,13 +405,8 @@
 eded
-, jar
 ;%0A%0A%09
@@ -444,23 +444,8 @@
 ded,
- ItemStack jar,
  Ite
@@ -509,26 +509,8 @@
 ed;%0A
-%09%09this.jar = jar;%0A
 %09%09th
@@ -625,62 +625,8 @@
 %09%7D%0A%0A
-%09public ItemStack getJar() %7B%0A%09%09return jar.copy();%0A%09%7D%0A%0A
 %09pub

Revert "Implementing jar support"