allow Components Update Animation
public Boolean allowComponentsUpdateAnimation(ItemStack oldStaffStack, ItemStack newStaffStack, PlayerEntity player, Hand hand)(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