onReceive

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