attack Entity
open fun attackEntity(staffStack: ItemStack, world: World, attacker: LivingEntity, target: Entity, hand: Hand): ActionResult(source)
Called on both the client by Fabric/Neo/Forge API and the server by Fabric/Neo/Forge API, when an entity attacks an entity with a staff.
Return
ActionResult.PASS: Lets Minecraft handle vanilla entity attack.
Anything else: Cancels vanilla entity attack, and on the logical client, sends a packet to the server.