attack Block
public ActionResult attackBlock(ItemStack staffStack, World world, LivingEntity attacker, BlockPos target, Direction side, Hand hand)(source)
Called on both the client and the server by Architectury API, when an entity attacks a block with a staff.
Return
ActionResult.PASS: Lets Minecraft handle vanilla block breaking.
Anything else: Cancels vanilla block breaking, and on the logical client, sends a packet to the server.