Server Play Networking
public final class ServerPlayNetworking
Content copied to clipboard
Offers access to play stage server-side networking functionalities.
Server-side networking functionalities include receiving serverbound packets, sending clientbound packets, and events related to server-side network handlers.
This class should be only used for the logical server.
See also
Types
PlayChannelHandler
Link copied to clipboard
public interface PlayChannelHandler
Content copied to clipboard
Functions
createS2CPacket
Link copied to clipboard
static Packet<? extends Object> createS2CPacket(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, ServerPlayNetworking.PlayChannelHandler channelHandler)
Content copied to clipboard
registerReceiver
Link copied to clipboard
static boolean registerReceiver(ServerPlayNetworkHandler networkHandler, Identifier channelName, ServerPlayNetworking.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