TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Find< T >() [2/2]

static T Terraria.ModLoader.ModContent.Find< T > ( string modName,
string name )
inlinestatic

Attempts to find the template instance with the specified name and mod name (not the clone/new instance which gets added to Items/Players/NPCs etc. as the game is played). Caching the result is recommended.

This will throw exceptions on failure.

Exceptions
T:System.Collections.Generic.KeyNotFoundException
Type Constraints
T :IModType 

Definition at line 65 of file ModContent.cs.

65 : IModType
66 {
67 return ModTypeLookup<T>.Get(modName, name);
68 }