2015-05-12 01:38:16 +00: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 15:05:07 +00:00
|
|
|
return !(testStack == null || this.requiredItem == null) && this.requiredItem.isItemEqual(testStack);
|
2015-05-12 01:38:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack getResult(ItemStack inputItem)
|
|
|
|
{
|
|
|
|
return this.getResult();
|
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack getResult()
|
|
|
|
{
|
|
|
|
return this.outputItem;
|
|
|
|
}
|
|
|
|
}
|