Curios API (Forge/NeoForge)

Curios API (Forge/NeoForge)

140M Downloads

LivingEntity context for ICurio#canRightClickEquip

ChloeDawn opened this issue ยท 1 comments

commented

Please describe the new feature or change.
Add the interacting entity to the context of ICurio#canRightClickEquip

Please describe why you want this feature.
I have an item that can only be equipped in the body slot if it is not already present in the chest plate slot, and currently have to proxy equipping through the PlayerInteractEvent.RightClickItem event to support this behavior.

commented

I had not realised that canEquip is also checked for hotbar usage, my apologies. There is enough context for what I need, and likely for what anyone else will need.