tModLoader v2024.11
A mod to make and play Terraria mods
IEntitySource_WithStatsFromItem Interface Reference

Used along with EntitySource_Parent to indicate that stats from the item should be transferred to spawned entities.
When used to spawn projectiles, a snapshot of the Player and Item stats will be stored on the projectile. See Projectile.ApplyStatsFromSource for implementation More...

Inherited by EntitySource_ItemUse.

Properties

Item Item [get]
 The item being used More...
 
Player Player [get]
 The Player using the Item. Equal to EntitySource_Parent.Entity More...
 

Detailed Description

Used along with EntitySource_Parent to indicate that stats from the item should be transferred to spawned entities.
When used to spawn projectiles, a snapshot of the Player and Item stats will be stored on the projectile. See Projectile.ApplyStatsFromSource for implementation

Property Documentation

◆ Item

Item IEntitySource_WithStatsFromItem.Item
get

The item being used

Implemented in EntitySource_ItemUse.

◆ Player

Player IEntitySource_WithStatsFromItem.Player
get

The Player using the Item. Equal to EntitySource_Parent.Entity

Implemented in EntitySource_ItemUse.