send

static void send(Identifier channelName, PacketByteBuf buf)

Sends a packet to the connected server.

Parameters

channelName

the channel of the packet

buf

the payload of the packet

Throws

if the client is not connected to a server

Sources

jvm source
Link copied to clipboard