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

◆ TryStartForItemSlot()

bool Terraria.GameInput.PlayerInput.FastUseItemMemory.TryStartForItemSlot ( Player player,
int itemSlot )
inline

Definition at line 134 of file PlayerInput.cs.

135 {
137 {
138 Clear();
139 return false;
140 }
141 _player = player;
142 _slot = itemSlot;
144 _shouldFastUse = true;
145 _isMouseItem = false;
146 ItemSlot.PickupItemIntoMouse(player.inventory, 0, itemSlot, player);
147 return true;
148 }
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
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
static void PickupItemIntoMouse(Item[] inv, int context, int slot, Player player)
Definition ItemSlot.cs:1444

References Terraria.GameInput.PlayerInput.FastUseItemMemory._isMouseItem, Terraria.GameInput.PlayerInput.FastUseItemMemory._itemType, Terraria.GameInput.PlayerInput.FastUseItemMemory._player, Terraria.GameInput.PlayerInput.FastUseItemMemory._shouldFastUse, Terraria.GameInput.PlayerInput.FastUseItemMemory._slot, Terraria.GameInput.PlayerInput.FastUseItemMemory.Clear(), Terraria.Player.inventory, Terraria.UI.ItemSlot.PickupItemIntoMouse(), and Terraria.Item.type.

+ Here is the call graph for this function: