can Swing Hand
public Boolean canSwingHand(ItemStack staffStack, World world, LivingEntity holder, Hand hand)(source)
Called on both the client and the server by Staff Mod on Fabric and Neo/Forge API on Neo/Forge, when an entity holding a staff tries to swing its hand.
Return
true
to allow hand swing, false
to cancel it