2015-05-11 21:38:16 -04:00
|
|
|
package WayofTime.alchemicalWizardry.api.bindingRegistry;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class UnbindingRecipe
|
|
|
|
{
|
|
|
|
public ItemStack requiredItem;
|
|
|
|
public ItemStack outputItem;
|
|
|
|
|
|
|
|
public UnbindingRecipe(ItemStack outputItem, ItemStack requiredItem)
|
|
|
|
{
|
|
|
|
this.requiredItem = requiredItem;
|
|
|
|
this.outputItem = outputItem;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean doesRequiredItemMatch(ItemStack testStack)
|
|
|
|
{
|
2015-07-02 11:05:07 -04:00
|
|
|
return !(testStack == null || this.requiredItem == null) && this.requiredItem.isItemEqual(testStack);
|
2015-05-11 21:38:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack getResult(ItemStack inputItem)
|
|
|
|
{
|
|
|
|
return this.getResult();
|
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack getResult()
|
|
|
|
{
|
|
|
|
return this.outputItem;
|
|
|
|
}
|
|
|
|
}
|