tModLoader v2024.09
A mod to make and play Terraria mods
RecipeItemCreationContext Class Reference

Provides the context of an item being crafted from a recipe. Includes the recipe, consumed items, and destination, facilitating features using data from consumed items to affect the final crafted item. More...

Inherits ItemCreationContext.

Public Member Functions

 RecipeItemCreationContext (Recipe recipe, List< Item > consumedItems, Item destinationStack)
 

Public Attributes

readonly List< ItemConsumedItems
 Cloned list of Items consumed when crafting.
 
Item DestinationStack
 An item stack that the created item will be combined with (via OnStack). For normal crafting, this is Main.mouseItem
 
readonly Recipe Recipe
 

Detailed Description

Provides the context of an item being crafted from a recipe. Includes the recipe, consumed items, and destination, facilitating features using data from consumed items to affect the final crafted item.