attack Entity
public EventResult attackEntity(ItemStack staffStack, World world, LivingEntity attacker, Entity target, Hand hand)(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
EventResult.interrupt, EventResult.interruptTrue, EventResult.interruptFalse, EventResult.interruptDefault: Cancels vanilla entity attack, and on the logical client, sends a packet to the server.
EventResult.pass: Lets Minecraft handle vanilla entity attack.