ghast-protocol 0.4.2

Minecraft Java Edition network protocol for the ghast client library: generated per-version packets, framing, compression, encryption, NBT
Documentation
// @generated by ghast-codegen-protocol from PrismarineJS minecraft-data 3.119.0
// (protocol.json of every supported version). Do not edit; run `cargo run -p ghast-codegen-protocol`.
// minecraft-data is MIT licensed, Copyright (c) 2015 PrismarineJS; see the NOTICE file
// in crates/ghast-protocol/src/generated/.

//! Packet and type definitions, each exactly once.
//!
//! A definition lives in the module of the first protocol that has it (`p47`, `p340`,
//! …) and is shared by every later version whose wire layout and Rust code for it
//! are identical. Packet structs take the protocol number as a const parameter, so
//! one definition serves versions with different packet ids. Use the version
//! modules (`crate::v1_8`, …): they alias and re-export what they use from here.

/// Definitions first used by protocol 340 (Minecraft 1.12.2).
#[cfg(any(
    feature = "v1_12_2",
    feature = "v1_16_5",
    feature = "v26_1",
    feature = "v26_2"
))]
pub mod p340;
/// Definitions first used by protocol 47 (Minecraft 1.8 – 1.8.9).
#[cfg(any(
    feature = "v1_8",
    feature = "v1_12_2",
    feature = "v1_16_5",
    feature = "v26_1",
    feature = "v26_2"
))]
pub mod p47;
/// Definitions first used by protocol 754 (Minecraft 1.16.4 – 1.16.5).
#[cfg(any(feature = "v1_16_5", feature = "v26_1", feature = "v26_2"))]
pub mod p754;
/// Definitions first used by protocol 775 (Minecraft 26.1 – 26.1.2).
#[cfg(any(feature = "v26_1", feature = "v26_2"))]
pub mod p775;
/// Definitions first used by protocol 776 (Minecraft 26.2).
///
/// Not a stability promise: these paths may change in a minor release; name the types through
/// the version module (`crate::v26_2::…`) instead.
#[cfg(feature = "v26_2")]
#[doc(hidden)]
pub mod p776;