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

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

T Terraria.Item.GetGlobalItem< T > ( T baseInstance)
inline

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

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

Definition at line 51884 of file Item.cs.

51884 : GlobalItem
51885 {
51887 }
RefReadOnlyArray< GlobalItem > EntityGlobals
Definition Item.cs:1021
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345
This class allows you to modify and use hooks for all items, including vanilla items....
Definition GlobalItem.cs:19

References Terraria.Item.EntityGlobals, and Terraria.Item.type.