tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ModLoader.BuffLoader Class Reference

This serves as the central class from which buff-related functions are supported and carried out. More...

Static Public Member Functions

static void CustomBuffTipSize (string buffTip, List< Vector2 > sizes)
 
static void DrawCustomBuffTip (string buffTip, SpriteBatch spriteBatch, int originX, int originY)
 
static ModBuff GetBuff (int type)
 Gets the ModBuff instance with the given type. If no ModBuff with the given type exists, returns null.
 
static void ModifyBuffTip (int buff, ref string tip, ref int rare)
 
static void PostDraw (SpriteBatch spriteBatch, int type, int buffIndex, BuffDrawParams drawParams)
 
static bool PreDraw (SpriteBatch spriteBatch, int type, int buffIndex, ref BuffDrawParams drawParams)
 
static bool ReApply (int buff, NPC npc, int time, int buffIndex)
 
static bool ReApply (int buff, Player player, int time, int buffIndex)
 
static bool RightClick (int type, int buffIndex)
 
static void Update (int buff, NPC npc, ref int buffIndex)
 
static void Update (int buff, Player player, ref int buffIndex)
 

Properties

static int BuffCount [get]
 

Detailed Description

This serves as the central class from which buff-related functions are supported and carried out.