tModLoader v2024.11
A mod to make and play Terraria mods
LegacyNameAttribute Class Reference

Allows for types to be registered with legacy/alias names for lookup via ModContent.Find<T>(string) and similar methods.
When manually loading content, use ModTypeLookup<T>.RegisterLegacyNames(T, string[]) instead. More...

Inherits Attribute.

Public Member Functions

 LegacyNameAttribute (params string[] names)
 

Static Public Member Functions

static IEnumerable< string > GetLegacyNamesOfType (Type type)
 

Public Attributes

readonly string[] Names
 

Detailed Description

Allows for types to be registered with legacy/alias names for lookup via ModContent.Find<T>(string) and similar methods.
When manually loading content, use ModTypeLookup<T>.RegisterLegacyNames(T, string[]) instead.