Start Here: Minecraft 26.x

How the Minecraft 26.3 protocol works: positional packet ids, stream codecs, listener handlers, and how to read the decompiled source browser.

1. The protocol is built, not declared

There is no static packet table in 26.3. Each connection state assembles its protocol with ProtocolInfoBuilder: addPacket(PacketType, StreamCodec) appends one entry per packet, and the wire id is the index of that entry. ProtocolInfoBuilder.buildDetails().listPackets hands (type, id) pairs to whatever needs them. The practical consequence: packet ids shift between versions whenever Mojang inserts or reorders a packet. Name-based registries ("accept_teleportation") are the stable identifiers, ids are not.

Packet classes are plain records or final classes. Serialization lives in a StreamCodec<B, P> constant that both reads and writes; the old readPacketData/writePacketData pair no longer exists.

2. Five connection states, nine chains

States: Handshaking (the client intention), Status (server-list ping), Login, Configuration (the modern pre-play negotiation state), and Play. Each state has a serverbound and a clientbound chain, nine in total (handshaking is serverbound-only). Registries are shared across states: CommonPacketTypes, CookiePacketTypes and PingPacketTypes entries appear inside configuration, login, status and play chains.

3. Handlers, not switches

Every state defines listener interfaces with one handle* method per packet (e.g. ServerGamePacketListener.handleAttack(ServerboundAttackPacket)). On the server the interface is implemented by ServerGamePacketListenerImpl; on the client by ClientPacketListener. The packet page for each class links both the listener method and the implementation class, which links straight into the source browser.

4. Reading the source browser

The source browser contains the full decompiled client: net/minecraft/** and com/mojang/**. Names are Mojang official mappings: the same names you see in Fabric Loom after genSources, so code you read here matches what you decompile locally. Comments are stripped by the decompiler; structure is exact.

5. Cheat modules in 26.x

The module index is mined from eight 26.2/26.3 client codebases (Meteor, MelaHack, OfflineClient, Combatant, Nicotine, LiquidBounce, KiwiClient, Goon). Each module page shows every client that implements it with the complete module source file inlined - expandable, verbatim - so you can compare approaches across the ecosystem.