Made it so you can view the recipes for downgrades in JEI.
This commit is contained in:
parent
1f6c4b47e2
commit
33b799723c
11 changed files with 258 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue