tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.DataStructures.IEntitySource Interface Reference

This object encapsulates context information about the source of a particular spawning event of an Item/Projectile/NPC/etc. Aids in facilitating many modding situations and used in various OnSpawn hooks.
The IEntitySource Guideteaches how and why to use this. More...

Inherited by Terraria.DataStructures.AEntitySource_Tile, Terraria.DataStructures.EntitySource_BossSpawn, Terraria.DataStructures.EntitySource_Buff, Terraria.DataStructures.EntitySource_DebugCommand, Terraria.DataStructures.EntitySource_DropAsItem, Terraria.DataStructures.EntitySource_Film, Terraria.DataStructures.EntitySource_FishedOut, Terraria.DataStructures.EntitySource_Gift, Terraria.DataStructures.EntitySource_ItemOpen, Terraria.DataStructures.EntitySource_ItemUse, Terraria.DataStructures.EntitySource_Loot, Terraria.DataStructures.EntitySource_Misc, Terraria.DataStructures.EntitySource_Mount, Terraria.DataStructures.EntitySource_OldOnesArmy, Terraria.DataStructures.EntitySource_OnHit, Terraria.DataStructures.EntitySource_Parent, Terraria.DataStructures.EntitySource_RevengeSystem, Terraria.DataStructures.EntitySource_SpawnNPC, Terraria.DataStructures.EntitySource_Sync, Terraria.DataStructures.EntitySource_TileEntity, Terraria.DataStructures.EntitySource_WorldEvent, and Terraria.DataStructures.EntitySource_WorldGen.

Properties

string? Context [get]
 

Detailed Description

This object encapsulates context information about the source of a particular spawning event of an Item/Projectile/NPC/etc. Aids in facilitating many modding situations and used in various OnSpawn hooks.
The IEntitySource Guide

teaches how and why to use this.