TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AddIngredient< T >()

Recipe Terraria.Recipe.AddIngredient< T > ( int stack = 1)
inline

Adds an ingredient to this recipe of the given type of item and stack size.

Parameters
stackThe stack.
Type Constraints
T :ModItem 

Definition at line 16236 of file Recipe.cs.

16236 : ModItem
16237 {
16238 return AddIngredient(ModContent.ItemType<T>(), stack);
16239 }
Manages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loa...
Definition ModContent.cs:38
This class serves as a place for you to place all your properties and hooks for each item....
Definition ModItem.cs:24
Recipe AddIngredient(int itemID, int stack=1)
Adds an ingredient to this recipe with the given item type and stack size. Ex: recipe....
Definition Recipe.cs:16193

References Terraria.Recipe.AddIngredient().

+ Here is the call graph for this function: