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

◆ TryGetGlobalNPC< T >() [2/2]

bool Terraria.NPC.TryGetGlobalNPC< T > ( T baseInstance,
out T result )
inline

Safely attempts to get the local instance of the type of the specified GlobalNPC instance.

Returns
Whether or not the requested instance has been found.
Type Constraints
T :GlobalNPC 

Definition at line 112498 of file NPC.cs.

112498 : GlobalNPC
112499 {
112501 }
This class allows you to modify and use hooks for all NPCs, including vanilla mobs....
Definition GlobalNPC.cs:19
RefReadOnlyArray< GlobalNPC > EntityGlobals
Definition NPC.cs:1575
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990