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

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

bool Terraria.Item.TryGetGlobalItem< T > ( T baseInstance,
out T result )
inline

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

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

Definition at line 51897 of file Item.cs.

51897 : GlobalItem
51898 {
51900 }
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.