send

fun Player.send(vararg bufs: FriendlyByteBuf, retain: Boolean = true, flush: Boolean = true)

Sends raw byte bufs that represent encoded clientbound packets to this player, which are optionally retained based on retain, and optionally immediately flushed based on flush.


fun Player.send(vararg packets: Packet<*>)
fun Player.send(packets: Iterable<Packet<*>>)