attack Block
public EventResult 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
EventResult.interruptTrue, EventResult.interruptFalse: Cancels vanilla block breaking, and on a Neo/Forge logical client, sends a packet to the server.
EventResult.interruptDefault, EventResult.pass: Lets Minecraft handle vanilla block breaking.