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

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

T Terraria.Player.GetModPlayer< T > ( )
inline

Gets the instance of the specified ModPlayer type. This will throw exceptions on failure.

Exceptions
T:System.Collections.Generic.KeyNotFoundException
Exceptions
T:System.IndexOutOfRangeException
Type Constraints
T :ModPlayer 

Definition at line 58174 of file Player.cs.

58174 : ModPlayer
58175 {
58176 return GetModPlayer(ModContent.GetInstance<T>());
58177 }
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