createS2CPacket

static Packet<? extends ObjectcreateS2CPacket(Identifier channelName, PacketByteBuf buf)

Creates a packet which may be sent to a the connected client.

Return

a new packet

Parameters

channelName

the channel name

buf

the packet byte buf which represents the payload of the packet

Sources

jvm source
Link copied to clipboard