pub enum ServerboundPackets {
Show 14 variants
None,
LegacyPing,
Handshake(HandshakePacket),
StatusRequest(StatusRequestPacket),
PingRequest(PingPacket),
LoginStart(LoginStart),
LoginEncryptionResponse(LoginEncryptionResponse),
LoginAcknowledged,
ClientInformation(ClientInformation),
ConfigurationPluginMessage(ServerboundPluginMessage),
AckFinishConfiguration,
KeepAlive(KeepAliveResponse),
Pong,
ResoucePackResponse(ResoucePackResponse),
}Expand description
A list of all Serverbound Packets that can be received (Client to Server)
Variants§
None
Variant when no packet was received
LegacyPing
Information that a legacy ping was received, no information stored, because none is needed
Handshake(HandshakePacket)
Handshake initialization Packet
§Note
Every Connection that is not a legacy connection has to start with this packet to tell the
server if the connection is of type Status or Login
StatusRequest(StatusRequestPacket)
Packet to request the player count, max players and motd
PingRequest(PingPacket)
Packet to measure the Ping, should be responded with the same id
LoginStart(LoginStart)
Packet to start the login procedure
LoginEncryptionResponse(LoginEncryptionResponse)
Packet that sends encrypted authentication data for the server to autheticate the minecraft account with the official authentication service
LoginAcknowledged
Packet that assures the server that the LoginSuccess was received
ClientInformation(ClientInformation)
First packet sent to the server after switching to Configuration
ConfigurationPluginMessage(ServerboundPluginMessage)
Plugin message packet for the configuration phase
AckFinishConfiguration
Packet that assures the server that the FinishConfiguration Packet was received
KeepAlive(KeepAliveResponse)
Keep Alive Packet, needed to be received to not get disconnected
Pong
Answer to a ping packet requested in the Configuration phase
ResoucePackResponse(ResoucePackResponse)
Packet to respond to AddResourcePack or RemoveResourcePack to tell the server how the
requested Action was processed and if it was successful