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
|
@ -154,6 +154,7 @@ public class Constants
|
|||
public static final String JEI_CATEGORY_ALCHEMYARRAY = Mod.MODID + ":alchemyArray";
|
||||
public static final String JEI_CATEGORY_SOULFORGE = Mod.MODID + ":soulForge";
|
||||
public static final String JEI_CATEGORY_ALCHEMYTABLE = Mod.MODID + ":salchemyTable";
|
||||
public static final String JEI_CATEGORY_ARMOURDOWNGRADE = Mod.MODID + ":armourDowngrade";
|
||||
|
||||
public static final String WAILA_CONFIG_BYPASS_SNEAK = Mod.MODID + ".bypassSneak";
|
||||
public static final String WAILA_CONFIG_ALTAR = Mod.MODID + ".bloodAltar";
|
||||
|
|
|
@ -134,6 +134,11 @@ public class LivingArmourDowngradeRecipe
|
|||
return this.input;
|
||||
}
|
||||
|
||||
public ItemStack getKey()
|
||||
{
|
||||
return this.keyStack;
|
||||
}
|
||||
|
||||
public void consumeInventory(IItemHandler inv)
|
||||
{
|
||||
for (int i = 0; i < inv.getSlots(); i++)
|
||||
|
|
|
@ -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