ServerPlayNetworkContext
class ServerPlayNetworkContext(player: ServerPlayerEntity, handler: ServerPlayNetworkHandler, sender: PacketSender) : NetworkContext<ServerPlayerEntity>
A server-side network context, used to handle C2S payloads
Author
fzzyhmstrs
Since
0.4.1
Constructors
Functions
Link copied to clipboard
Disconnects the current session (single or multiplayer)
Link copied to clipboard
The network side of this context. Responses will be CLIENTBOUND
Link copied to clipboard
Replies to a payload with an opposite-direction response (S2C in this case)
Link copied to clipboard
Sends a payload to all players on the server. By default, skips the player that sent the inbound packet