allowReequipAnimation

open override fun allowReequipAnimation(oldStaffStack: ItemStack, newStaffStack: ItemStack, selectedSlotChanged: Boolean): Boolean(source)

Called on the client side by Neo/Forge, when the NBT of the held item gets updated.

Return

true to play the update/equip animation, false to skip it

Parameters

oldStaffStack

The previous item stack

newStaffStack

The updated item stack

selectedSlotChanged

If the selected hotbar slot was changed