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

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

static T Terraria.ModLoader.ModContent.Find< T > ( string fullname)
inlinestatic

Attempts to find the template instance with the specified full 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 58 of file ModContent.cs.

58 : IModType
59 {
60 return ModTypeLookup<T>.Get(fullname);
61 }