allow Components Update Animation
open override fun allowComponentsUpdateAnimation(oldStaffStack: ItemStack, newStaffStack: ItemStack, player: PlayerEntity, hand: Hand): Boolean(source)
Called on the client side by Fabric API, when the NBT of the held item gets updated.
Return
true
to play the update/equip animation, false
to skip it
Parameters
old Staff Stack
The previous item stack
new Staff Stack
The updated item stack
player
The holder of oldStaffStack