Copyright | (c) axionbuster 2025 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | GHC2021 |
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
login :: ParserStates Source #
play :: ParserStates Source #
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.