ServerPlayNetworkContext
class ServerPlayNetworkContext(context: ServerPlayNetworking.Context) : NetworkContext<ServerPlayerEntity>
A server-side network context, used to handle C2S payloads
Author
fzzyhmstrs
Since
0.4.1
Functions
Link copied to clipboard
Disconnects the current session (single or multiplayer)
Link copied to clipboard
The current network phase. Always PLAY at the moment.
Link copied to clipboard
The network side of this context. Responses will be CLIENTBOUND
Link copied to clipboard
Sends a payload to all players on the server. By default, skips the player that sent the inbound packet