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

◆ TryFind< T >()

bool Terraria.ModLoader.Mod.TryFind< T > ( string name,
out T value )
inlineinherited

Safely attempts to find the template instance from this mod with the specified 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 223 of file Mod.cs.

223 : IModType
224 {
225 return ModContent.TryFind<T>(Name, name, out value);
226 }
virtual string Name
Stores the name of the mod. This name serves as the mod's identification, and also helps with saving ...
Definition Mod.cs:66

References Terraria.ModLoader.Mod.Name.