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

◆ CanItemSlotAccept()

bool Terraria.Player.CanItemSlotAccept ( Item theSlot,
Item theItemToAccept )
inline

Definition at line 38035 of file Player.cs.

38036 {
38037 if (theSlot.type == 0)
38038 {
38039 return true;
38040 }
38041 bool vanillaResult = false;
38042 if (theSlot.stack < theSlot.maxStack && theItemToAccept.IsTheSameAs(theSlot))
38043 {
38044 vanillaResult = true;
38045 }
38047 {
38048 return true;
38049 }
38050 return false;
38051 }
static bool CanStack(Item destination, Item source)
Returns false if item prefixes don't match. Then calls all GlobalItem.CanStack hooks until one return...
This serves as the central class from which item-related functions are carried out....
Definition ItemLoader.cs:26

References Terraria.ModLoader.ItemLoader.CanStack().

Referenced by Terraria.Player.CanGoIntoAmmoOnPickup(), Terraria.Player.ItemSpace(), and Terraria.Player.ItemSpaceForCofveve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: