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

Public Member Functions

void ClearAll ()
 
List< AchievementCreateAchievementsList ()
 
Achievement GetAchievement (string achievementName)
 Returns the achievement with the provided identifier. Consult the Achievement Identifiers section of the Vanilla Content IDs wiki pageto look up vanilla achievement identifiers. Modded achievements will be in the form of "ModName/Name".
 
AchievementCondition GetCondition (string achievementName, string conditionName)
 
GetCondition< T > (string achievementName, string conditionName)
 
int GetIconIndex (string achievementName)
 
void Load ()
 
void Register (Achievement achievement)
 
void RegisterAchievementCategory (string achievementName, AchievementCategory category)
 
void RegisterIconIndex (string achievementName, int iconIndex)
 
void Save ()
 
void Unregister (Achievement achievement)
 

Events

Achievement.AchievementCompleted OnAchievementCompleted
 

Member Function Documentation

◆ GetCondition< T >()

T AchievementManager.GetCondition< T > ( string  achievementName,
string  conditionName 
)
Type Constraints
T :AchievementCondition 
T :GetCondition 
T :achievementName 
T :conditionName 
T :as 
T :T