onAttackAsync

abstract fun onAttackAsync(handler: (ServerboundAttackPacketEvent) -> Unit)

Registers a handler called on the player's Netty event-loop thread when they attack this entity (left click).