getCraftingResult
public net.minecraft.item.ItemStack getCraftingResult(net.minecraft.inventory.InventoryCrafting inventoryCrafting)
Crafts the backpack with the upgrade, with some special cases recognized.
First it checks if the backpack has enough upgrade points available to apply said upgrade to the backpack.
If it has enough points available it progresses, otherwise it returns null.
Then it checks for special cases, listed below:
You can't have more than the config amount of 'additional upgrade' upgrades applied.
You can't have multiple upgrades of the same type. If you try to apply the upgrade twice it will return the backpack with teh upgrade removed instead (which is how you remove upgrades).
You can't have both an advanced nesting upgrade and a nesting upgrade on the same backpack.
- Specified by:
getCraftingResult in interface net.minecraft.item.crafting.IRecipe
- Overrides:
getCraftingResult in class net.minecraftforge.oredict.ShapelessOreRecipe
- Parameters:
inventoryCrafting - - the inventory crafting to check
- Returns:
- - the resulting itemstack