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

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

bool Terraria.Player.TryGetModPlayer< T > ( out T result)
inline

Gets the instance of the specified ModPlayer type.

Type Constraints
T :ModPlayer 

Definition at line 58189 of file Player.cs.

58189 : ModPlayer
58190 {
58191 return TryGetModPlayer(ModContent.GetInstance<T>(), out result);
58192 }
Manages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loa...
Definition ModContent.cs:38
A ModPlayer instance represents an extension of a Player instance. You can store fields in the ModPla...
Definition ModPlayer.cs:16