tModLoader v2024.11
A mod to make and play Terraria mods
EntitySource_Parent Class Reference

Use when the parent can be considered the 'owner' or 'responsible for' the effect.
This is the most important entity source. If in doubt, use it. More...

Inherits IEntitySource.

Inherited by EntitySource_Buff, EntitySource_Caught, EntitySource_Death, EntitySource_DropAsItem, EntitySource_Gift, EntitySource_HitEffect, EntitySource_ItemUse, EntitySource_Loot, EntitySource_Mount, EntitySource_OnHit, and EntitySource_OnHurt.

Public Member Functions

 EntitySource_Parent (Entity entity, 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 Entity [get]
 The entity which is the source of the effect or action. In many cases, it makes sense to consider buffs or effects applied to the parent entity, and make changes to the spawned entity.
 
- 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

Use when the parent can be considered the 'owner' or 'responsible for' the effect.
This is the most important entity source. If in doubt, use it.

Property Documentation

◆ Context

string? EntitySource_Parent.Context
get

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

Implements IEntitySource.