allowNbtUpdateAnimation

open fun allowNbtUpdateAnimation(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

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

See also