mmm-0.1.0.0: Minecraft 1.21.4 implementation in Haskell
Copyright(c) axionbuster 2025
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

M.V769.Reg

Description

Defines packet state registrations for protocol version 769 using Template Haskell. This module maps packet types to their numeric codes for different connection states: handshake, status, login, configuration and play.

States

  • Handshake - Initial connection handshake
  • Status - Server status/ping
  • Login - Authentication and encryption
  • Configuration - Server/client capability exchange
  • Play - Main game state

Each state defines bidirectional packet mappings using the states quasi-quoter. Packet definitions include receive (client->server) and send (server->client) codes.

Synopsis

Documentation

data ParserStates Source #

Represents a pair of parser states - one for server-side parsing and one for client-side. The states contain mappings between packet types, codes and identifiers.