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

◆ HasBuff< T >()

bool Terraria.Player.HasBuff< T > ( )
inline

Type Constraints
T :ModBuff 

Definition at line 58273 of file Player.cs.

58273 : ModBuff
58274 {
58275 return HasBuff(ModContent.BuffType<T>());
58276 }
This class serves as a place for you to define a new buff and how that buff behaves.
Definition ModBuff.cs:13
Manages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loa...
Definition ModContent.cs:38
bool HasBuff(int type)
Returns whether or not this Player currently has a (de)buff of the provided type.
Definition Player.cs:58267

References Terraria.Player.HasBuff().

+ Here is the call graph for this function: