tModLoader v2024.04
A mod to make and play Terraria mods
EntitySource_BossSpawn Class Reference

Used for most vanilla bosses, conveys their initial target, which is normally the closest player. More...

Inherits IEntitySource.

Public Member Functions

 EntitySource_BossSpawn (Entity target, string? context=null)
 

Properties

string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 
Entity Target [get]
 The entity which this boss spawn on.

In the vast majority of cases, this will be a Player. Often NPC.target will be set to Player.whoAmI
 
- Properties inherited from IEntitySource
string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 

Detailed Description

Used for most vanilla bosses, conveys their initial target, which is normally the closest player.

Property Documentation

◆ Context

string? EntitySource_BossSpawn.Context
get

Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses

Implements IEntitySource.