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

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

static bool Terraria.ModLoader.ModContent.TryFind< T > ( string fullname,
out T value )
inlinestatic

Safely 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.

Returns
Whether or not the requested instance has been found.
Type Constraints
T :IModType 

Definition at line 72 of file ModContent.cs.

72 : IModType
73 {
74 return ModTypeLookup<T>.TryGetValue(fullname, out value);
75 }