onSend

inline fun <T : Any> PacketListener.onSend(noinline action: T.(PacketEvent) -> Unit)

Registers a type-safe handler for packets of type T being sent to the client.

Reified inline variant of PacketListener.onSend.