|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinestatic |
Attempts to move the item in plr 's inventory or Void Vault into nearby chests.
Only called on F:Terraria.ID.NetmodeID.Server.
| plr | The index of the T:Terraria.Player in F:Terraria.Main.player to try moving an item for. |
| slot | The T:Terraria.ID.PlayerItemSlotID to move an item from. If slot < 58, then that slot of plr 's inventory is moved. If slot >= F:Terraria.ID.PlayerItemSlotID.Bank4_0 && slot < F:Terraria.ID.PlayerItemSlotID.Bank4_0 + 40, then that slot (minus F:Terraria.ID.PlayerItemSlotID.Bank4_0) of plr 's Void Vault is moved. Otherwise, no item is moved. |
It's recommended to use M:Terraria.Player.QuickStackAllChests to handle this automatically.
Definition at line 368 of file Chest.cs.
References Terraria.ID.PlayerItemSlotID.Bank4_0, Terraria.Main.player, Terraria.Chest.PutItemInNearbyChest(), and Terraria.NetMessage.SendData().
Referenced by Terraria.MessageBuffer.GetData().
Here is the call graph for this function:
Here is the caller graph for this function: