allowReequipAnimation

public Boolean allowReequipAnimation(ItemStack oldStaffStack, ItemStack newStaffStack, Boolean selectedSlotChanged)(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