Interface SyncHelloPacket
- All Superinterfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
- All Known Implementing Classes:
ClientboundSyncHelloPacket, ServerboundSyncHelloPacket
public sealed interface SyncHelloPacket
extends net.minecraft.network.protocol.common.custom.CustomPacketPayload
permits ClientboundSyncHelloPacket, ServerboundSyncHelloPacket
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDenotes the current sync protocol version -
Method Summary
Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
type
-
Field Details
-
VERSION
static final int VERSIONDenotes the current sync protocol version
This version handshake is initiated by the connecting client, with the server only then responding with its own protocol version.
If the server doesn't respond or responds with a different value, then the server is assumed to not support syncing over the current protocol, and will not send or receive any sync packets, and vice versa.
Protocol Version Changes 1(5.0.0-Beta.2)Initial versioned protocol, sent during play phase 2(5.0.0-Beta.5)Hello packet is now sent in config phase and play phase sync packets have been reworked - See Also:
-