|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Use the interface, T:Terraria.DataStructures.IEntitySource_WithStatsFromItem instead when checking entity sources in OnSpawn
More...
Inheritance diagram for Terraria.DataStructures.EntitySource_ItemUse:
Collaboration diagram for Terraria.DataStructures.EntitySource_ItemUse:Public Member Functions | |
| EntitySource_ItemUse (Player player, Item item, string? context=null) | |
Static Package Functions | |
| static ? IEntitySource | GetGoreFallback () |
| static FallbackSourceRef | PushFallback (IEntitySource source) |
Properties | |
| Player | Player [get] |
| The Player using the Item. Equal to P:Terraria.DataStructures.EntitySource_Parent.Entity | |
| Item | Item [get] |
| The item being used. | |
| 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. | |
| string? | Context [get] |
| Additional context identifier, particularly useful for set bonuses or accessory affects. See T:Terraria.ID.ItemSourceID and T:Terraria.ID.ProjectileSourceID for vanilla uses. | |
Static Private Attributes | |
| static ? IEntitySource | _goreFallback |
Use the interface, T:Terraria.DataStructures.IEntitySource_WithStatsFromItem instead when checking entity sources in OnSpawn
Used when a player uses an item or an accessory.
Definition at line 8 of file EntitySource_ItemUse.cs.