|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinestatic |
Creates a recipe resulting in the given item and amount but does not yet register it into the game. Call this at the very beginning when creating a new craft.
| result | What item will be given when the craft has been completed |
| amount | The stack -> how many result items given when the recipe is crafted. (eg. 1 wood -> 4 wood platform) |
| T:Terraria.ModLoader.Exceptions.RecipeException | A Recipe can only be created inside recipe related methods |
Definition at line 16629 of file Recipe.cs.
References Terraria.Recipe.Recipe(), Terraria.Recipe.createItem, Terraria.ModLoader.RecipeLoader.CurrentMod, Terraria.Item.SetDefaults(), and Terraria.ModLoader.RecipeLoader.setupRecipes.
Here is the call graph for this function: