TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ OnCaughtBy()

virtual void Terraria.ModLoader.ModNPC.OnCaughtBy ( Player player,
Item item,
bool failed )
inlinevirtual

Allows you to make things happen when the given item attempts to catch this NPC.

Parameters
playerThe player attempting to catch this NPC.
itemThe item used to catch this NPC.
failedWhether or not this NPC has been successfully caught.

Definition at line 375 of file ModNPC.cs.

376 {
377 }