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

◆ useVoidBag()

bool Terraria.Player.useVoidBag ( )
inline

Definition at line 21132 of file Player.cs.

21133 {
21134 for (int i = 0; i < 58; i++)
21135 {
21136 if (inventory[i].stack > 0 && inventory[i].type == 4131)
21137 {
21138 return true;
21139 }
21140 }
21141 return false;
21142 }
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767

References Terraria.Player.inventory.

Referenced by Terraria.Recipe.CollectItemsToCraftWithFrom(), Terraria.Player.ConsumeItem(), Terraria.Player.FindItemInInventoryOrOpenVoidBag(), Terraria.Player.HasItemInInventoryOrOpenVoidBag(), Terraria.Player.HasUnityPotion(), Terraria.Player.QuickBuff(), Terraria.Player.QuickBuff_PickBestFoodItem(), Terraria.Player.QuickHeal_GetItemToUse(), Terraria.Player.QuickMana_GetItemToUse(), Terraria.Player.QuickStackAllChests(), Terraria.Player.TakeUnityPotion(), and Terraria.Player.TileInteractionsUse().

+ Here is the caller graph for this function: