Client Play Networking
public final class ClientPlayNetworking
Content copied to clipboard
Offers access to play stage client-side networking functionalities.
Client-side networking functionalities include receiving clientbound packets, sending serverbound packets, and events related to client-side network handlers.
This class should be only used on the physical client and for the logical client.
See also
Types
PlayChannelHandler
Link copied to clipboard
public interface PlayChannelHandler
Content copied to clipboard
Functions
createC2SPacket
Link copied to clipboard
static Packet<? extends Object> createC2SPacket(Identifier channelName, PacketByteBuf buf)
Content copied to clipboard
getGlobalReceivers
Link copied to clipboard
getReceived
Link copied to clipboard
getSendable
Link copied to clipboard
getSender
Link copied to clipboard
registerGlobalReceiver
Link copied to clipboard
static boolean registerGlobalReceiver(Identifier channelName, ClientPlayNetworking.PlayChannelHandler channelHandler)
Content copied to clipboard
registerReceiver
Link copied to clipboard
static boolean registerReceiver(Identifier channelName, ClientPlayNetworking.PlayChannelHandler channelHandler)
Content copied to clipboard
unregisterGlobalReceiver
Link copied to clipboard
@Nullable()
Content copied to clipboard
unregisterReceiver
Link copied to clipboard
@Nullable()
Content copied to clipboard
Sources
jvm source
Link copied to clipboard