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

◆ IsNotSameTypePrefixAndStack()

bool Terraria.Item.IsNotSameTypePrefixAndStack ( Item compareItem)
inline

returns false if and only if type, stack and prefix match

See also
M:Terraria.Item.IsNetStateDifferent(Terraria.Item)

Definition at line 51938 of file Item.cs.

51939 {
51940 if (type == compareItem.type && stack == compareItem.stack)
51941 {
51942 return prefix != compareItem.prefix;
51943 }
51944 return true;
51945 }
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
Definition Item.cs:396
int prefix
The current prefix applied to this item. Either a T:Terraria.ID.PrefixID entry or M:Terraria....
Definition Item.cs:752
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.prefix, Terraria.Item.stack, and Terraria.Item.type.