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

◆ GetContainerUsageInfo()

static void Terraria.UI.ChestUI.GetContainerUsageInfo ( out bool sync,
out Item[] chestinv )
inlinestatic

Definition at line 1393 of file ChestUI.cs.

1394 {
1395 sync = false;
1396 Player player = Main.player[Main.myPlayer];
1397 chestinv = player.bank.item;
1398 if (player.chest > -1)
1399 {
1400 chestinv = Main.chest[player.chest].item;
1401 sync = Main.netMode == 1;
1402 }
1403 else if (player.chest == -2)
1404 {
1405 chestinv = player.bank.item;
1406 }
1407 else if (player.chest == -3)
1408 {
1409 chestinv = player.bank2.item;
1410 }
1411 else if (player.chest == -4)
1412 {
1413 chestinv = player.bank3.item;
1414 }
1415 else if (player.chest == -5)
1416 {
1417 chestinv = player.bank4.item;
1418 }
1419 }

References Terraria.Player.bank, Terraria.Player.bank2, Terraria.Player.bank3, Terraria.Player.bank4, Terraria.Main.chest, Terraria.Player.chest, Terraria.Chest.item, Terraria.Main.myPlayer, and Terraria.Main.player.

Referenced by Terraria.Main.MouseText_DrawItemTooltip_GetLinesInfo(), Terraria.UI.ItemSlot.PickItemMovementAction(), and Terraria.UI.ChestUI.TryPlacingInChest().

+ Here is the caller graph for this function: