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

Used when an Item is spawned on the server as a result of MessageID.SyncItemCannotBeTakenByEnemies
Only used by vanilla for lucky coin. Note that the item is spawned client-side with IEntitySource.Context = ItemSourceID.LuckyCoin More...

Inherits IEntitySource.

Public Member Functions

 EntitySource_Sync (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...
 
- 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 when an Item is spawned on the server as a result of MessageID.SyncItemCannotBeTakenByEnemies
Only used by vanilla for lucky coin. Note that the item is spawned client-side with IEntitySource.Context = ItemSourceID.LuckyCoin

Property Documentation

◆ Context

string? EntitySource_Sync.Context
get

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

Implements IEntitySource.