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

◆ IsTheSameAs()

bool Terraria.Item.IsTheSameAs ( Item compareItem)
inlinepackage

Definition at line 51756 of file Item.cs.

51757 {
51758 if (netID == compareItem.netID)
51759 {
51760 return type == compareItem.type;
51761 }
51762 return false;
51763 }
int netID
Definition Item.cs:739
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

References Terraria.Item.netID, and Terraria.Item.type.

Referenced by Terraria.UI.ItemSlot.AccCheck(), Terraria.UI.ItemSlot.AccCheck_ForLocalPlayer(), Terraria.UI.ItemSlot.AccessorySwap(), Terraria.Recipe.ConsumeForCraft(), Terraria.UI.ChestUI.DepositAll(), and Terraria.Chest.PutItemInNearbyChest().

+ Here is the caller graph for this function: