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

◆ CanAcceptItem()

bool Terraria.ModLoader.AccessorySlotLoader.CanAcceptItem ( int index,
Item checkItem,
int context )
inline

Definition at line 575 of file AccessorySlotLoader.cs.

576 {
577 return Get(index).CanAcceptItem(checkItem, ContextToEnum(context));
578 }
ModAccessorySlot Get(int id, Player player)
AccessorySlotType ContextToEnum(int context)
virtual bool CanAcceptItem(Item checkItem, AccessorySlotType context)
Override to set conditions on what can be placed in the slot. Default is to return false only when it...

References Terraria.ModLoader.ModAccessorySlot.CanAcceptItem(), Terraria.ModLoader.AccessorySlotLoader.ContextToEnum(), and Terraria.ModLoader.AccessorySlotLoader.Get().

Referenced by Terraria.UI.ItemSlot.LeftClick(), and Terraria.ModLoader.AccessorySlotLoader.ModSlotCheck().

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