tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.DataStructures.EntitySource_CatchEntity Class Reference

Used for when NPCs or other entities are caught by things like bug nets. More...

Inherits Terraria.DataStructures.IEntitySource.

Public Member Functions

 EntitySource_CatchEntity (Entity entity, Entity caughtEntity, string? context=null)
 

Public Attributes

readonly Entity CaughtEntity
 The entity which was caught by the Entity.
In the vast majority of cases, this will be an NPC.
 
readonly Entity Entity
 The entity which performed the act of catching the CaughtEntity.
In the vast majority of cases, this will be a Player.
 

Properties

string? Context [get]
 
- Properties inherited from Terraria.DataStructures.IEntitySource
string? Context [get]
 

Detailed Description

Used for when NPCs or other entities are caught by things like bug nets.

Property Documentation

◆ Context

string? Terraria.DataStructures.EntitySource_CatchEntity.Context
get