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

◆ IsABuildingItem()

static bool Terraria.UI.ItemSlot.IsABuildingItem ( Item item)
inlinestatic

Definition at line 4080 of file ItemSlot.cs.

4081 {
4082 if (item.type > 0 && item.stack > 0 && item.useStyle != 0)
4083 {
4084 return item.useTime > 0;
4085 }
4086 return false;
4087 }

References Terraria.Item.stack, Terraria.Item.type, and Terraria.Item.useStyle.

Referenced by Terraria.GameInput.PlayerInput.HandleDpadSnap(), and Terraria.UI.ItemSlot.TryEnteringBuildingMode().

+ Here is the caller graph for this function: