tModLoader v2024.09
A mod to make and play Terraria mods
|
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< Item > | ConsumedItems |
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 |
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.