attack Block
open fun attackBlock(staffStack: ItemStack, world: World, attacker: LivingEntity, target: BlockPos, side: Direction, hand: Hand): EventResult(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.