Made it so you can view the recipes for downgrades in JEI.

This commit is contained in:
WayofTime 2016-11-10 10:39:19 -05:00
parent 1f6c4b47e2
commit 33b799723c
11 changed files with 258 additions and 5 deletions

View file

@ -101,6 +101,15 @@ public class ItemHelper
return null;
}
public static void setUpgrade(ItemStack stack, LivingArmourUpgrade upgrade)
{
if (stack.getItem() instanceof ItemUpgradeTome || stack.getItem() instanceof IUpgradeTrainer)
{
setKey(stack, upgrade.getUniqueIdentifier());
setLevel(stack, upgrade.getUpgradeLevel());
}
}
public static void setKey(ItemStack stack, String key)
{
if (stack.getItem() instanceof ItemUpgradeTome || stack.getItem() instanceof IUpgradeTrainer)