attack Entity
Called on both the client by Staff Mod and the server by Fabric API (Fabric) or Staff Mod (Forge), when an entity attacks an entity with a staff.
On the logical client, the return values have the following meaning:
SUCCESS: Cancel vanilla entity attack, send a packet to the server, and swing hand. This doesn't reset the entity attack cooldown
CONSUME, CONSUME_PARTIAL: Cancel vanilla entity attack, send a packet to the server, and don't swing hand. This doesn't reset the entity attack cooldown
PASS: Let Minecraft handle vanilla entity attack
FAIL: Cancel vanilla entity attack, don't send a packet to the server, and don't swing hand. This doesn't reset the entity attack cooldown
On the logical server, the return values have the following meaning (if used by player):
SUCCESS, CONSUME, CONSUME_PARTIAL, FAIL: Cancel vanilla entity attack, don't attack the entity
PASS: Let Minecraft handle vanilla entity attack
On the logical server, the return values are processed by the caller code (if the attacker is not a player).