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

◆ HasItemInInventoryOrOpenVoidBag()

bool Terraria.Player.HasItemInInventoryOrOpenVoidBag ( int type)
inline

Similar to M:Terraria.Player.HasItem(System.Int32), but also checks the Void Bag.

Definition at line 56598 of file Player.cs.

56599 {
56600 if (!HasItem(type))
56601 {
56602 if (useVoidBag())
56603 {
56604 return HasItem(type, bank4.item);
56605 }
56606 return false;
56607 }
56608 return true;
56609 }
Item[] item
The items this chest contains. F:Terraria.Chest.maxItems elements long.
Definition Chest.cs:93
bool HasItem(int type)
Checks if the player has the specified item in their F:Terraria.Player.inventory. Does not check Vo...
Definition Player.cs:56568
bool useVoidBag()
Definition Player.cs:21132

References Terraria.Player.bank4, Terraria.Player.HasItem(), Terraria.Chest.item, and Terraria.Player.useVoidBag().

Referenced by Terraria.UI.ItemSlot.TryOpenContainer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: