BloodMagic/src/main/java/WayofTime/bloodmagic/compat/jei/armourDowngrade/ArmourDowngradeRecipeJEI.java

29 lines
954 B
Java
Raw Normal View History

package WayofTime.bloodmagic.compat.jei.armourDowngrade;
import lombok.Getter;
2016-12-12 19:56:36 -08:00
import mezz.jei.api.ingredients.IIngredients;
import mezz.jei.api.recipe.BlankRecipeWrapper;
import net.minecraft.item.ItemStack;
import WayofTime.bloodmagic.api.recipe.LivingArmourDowngradeRecipe;
import WayofTime.bloodmagic.api.util.helper.ItemHelper.LivingUpgrades;
import WayofTime.bloodmagic.registry.ModItems;
public class ArmourDowngradeRecipeJEI extends BlankRecipeWrapper
{
@Getter
private LivingArmourDowngradeRecipe recipe;
public ArmourDowngradeRecipeJEI(LivingArmourDowngradeRecipe recipe)
{
this.recipe = recipe;
}
@Override
2016-12-12 19:56:36 -08:00
public void getIngredients(IIngredients ingredients) {
// TODO - inputs
ItemStack upgradeStack = new ItemStack(ModItems.UPGRADE_TOME);
LivingUpgrades.setUpgrade(upgradeStack, recipe.getRecipeOutput());
2016-12-12 19:56:36 -08:00
ingredients.setOutput(ItemStack.class, upgradeStack);
}
}