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

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

T Terraria.NPC.GetGlobalNPC< T > ( T baseInstance)
inline

Gets the local instance of the type of the specified GlobalNPC instance. This will throw exceptions on failure.

Exceptions
T:System.Collections.Generic.KeyNotFoundException
Exceptions
T:System.NullReferenceException
Type Constraints
T :GlobalNPC 

Definition at line 112485 of file NPC.cs.

112485 : GlobalNPC
112486 {
112488 }
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