tModLoader v2024.03
A mod to make and play Terraria mods
AEntitySource_Tile Class Reference

Abstract base class for entities which come from a tile.

More...

Inherits IEntitySource.

Inherited by EntitySource_OverfullChest, EntitySource_ShakeTree, EntitySource_TileBreak, EntitySource_TileInteraction, EntitySource_TileUpdate, and EntitySource_Wiring.

Public Member Functions

 AEntitySource_Tile (int tileCoordsX, int tileCoordsY, string? context)
 

Properties

string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 
Point TileCoords [get]
 
- 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

Abstract base class for entities which come from a tile.

If the entity comes from a Player/NPC/Projectile, and a tile is only incidentally involved, consider making your own subclass of EntitySource_Parent instead

Property Documentation

◆ Context

string? AEntitySource_Tile.Context
get

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

Implements IEntitySource.