allowNbtUpdateAnimation

public Boolean allowNbtUpdateAnimation(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

oldStaffStack

The previous item stack

newStaffStack

The updated item stack

player

The holder of oldStaffStack

hand

The hand of player, in which the old staff is