tModLoader v2025.08
A mod to make and play Terraria mods
ItemPickupCondition Class Reference

Satisfied when any of the provided items is picked up by the local player. More...

Inherits AchievementCondition.

Public Member Functions

 ItemPickupCondition (short itemId)
 
 ItemPickupCondition (short itemId, string name)
 
 ItemPickupCondition (short[] itemIds)
 
 ItemPickupCondition (short[] itemIds, string name)
 
- Public Member Functions inherited from AchievementCondition
delegate void AchievementUpdate (AchievementCondition condition)
 
virtual void Clear ()
 
virtual void Complete ()
 
IAchievementTracker GetAchievementTracker ()
 
virtual void Load (JObject state)
 

Static Public Member Functions

static AchievementCondition Create (params short[] items)
 
static AchievementCondition Create (short item)
 
static AchievementCondition[] CreateMany (params short[] items)
 

Additional Inherited Members

- Public Attributes inherited from AchievementCondition
readonly string Name
 
- Protected Member Functions inherited from AchievementCondition
 AchievementCondition (string name)
 
virtual IAchievementTracker CreateAchievementTracker ()
 
- Protected Attributes inherited from AchievementCondition
IAchievementTracker _tracker
 
- Properties inherited from AchievementCondition
bool IsCompleted [get]
 
- Events inherited from AchievementCondition
AchievementUpdate OnComplete
 

Detailed Description

Satisfied when any of the provided items is picked up by the local player.