tModLoader v2024.02
A mod to make and play Terraria mods
BuyItemCreationContext Class Reference

Created in the context of a player buying an item from a shop. Very similar to

See also
RecipeItemCreationContext

in functionality. More...

Inherits ItemCreationContext.

Public Member Functions

 BuyItemCreationContext (Item destinationStack, NPC vendorNPC)
 

Public Attributes

Item DestinationStack
 An item stack that the bought item will be combined with (via OnStack).
 
NPC VendorNPC
 The NPC that this item was bought from.
 

Detailed Description

Created in the context of a player buying an item from a shop. Very similar to

See also
RecipeItemCreationContext

in functionality.