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

◆ OnCreated()

void Terraria.Item.OnCreated ( ItemCreationContext context)
inline

Definition at line 49107 of file Item.cs.

49108 {
49109 ItemLoader.OnCreated(this, context);
49110 if (type == 5437)
49111 {
49112 SetDefaults(5358);
49113 }
49114 }
void SetDefaults(int Type=0)
Definition Item.cs:48800
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345
static void OnCreated(Item item, ItemCreationContext context)
This serves as the central class from which item-related functions are carried out....
Definition ItemLoader.cs:26

References Terraria.ModLoader.ItemLoader.OnCreated(), Terraria.Item.SetDefaults(), and Terraria.Item.type.

Referenced by Terraria.ModLoader.RecipeLoader.OnCraft().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: