ghast-protocol 0.4.4

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
// (data/pc/26.1/protocol.json, Minecraft 26.1.2). 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/.

//! Protocol 775 (Minecraft 26.1 – 26.1.2), generated from minecraft-data.
//!
//! One module per connection state, each with `clientbound` and `serverbound`
//! packet types, an enum of all packets and the packet `id` constants. The packet
//! types are aliases of definitions in [`crate::defs`] that may be shared with
//! other versions.

pub mod configuration;
pub mod handshaking;
pub mod login;
pub mod play;
pub mod status;
pub mod types;

/// Marker type for protocol 775 (Minecraft 26.1 – 26.1.2).
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct V26_1;

impl crate::packet::sealed::Sealed for V26_1 {}

impl crate::packet::Version for V26_1 {
    const PROTOCOL: i32 = 775;
    const NAME: &'static str = "26.1.2";
    const POSITION_LAYOUT: crate::types::PositionLayout = crate::types::PositionLayout::Xzy;
    const INFO: &'static crate::versions::ProtocolVersion = &crate::versions::TABLE[3];
    type HandshakingServerbound = handshaking::serverbound::ServerboundHandshakingPacket;
    type StatusClientbound = status::clientbound::ClientboundStatusPacket;
    type StatusServerbound = status::serverbound::ServerboundStatusPacket;
    type LoginClientbound = login::clientbound::ClientboundLoginPacket;
    type LoginServerbound = login::serverbound::ServerboundLoginPacket;
    type ConfigurationClientbound = configuration::clientbound::ClientboundConfigurationPacket;
    type ConfigurationServerbound = configuration::serverbound::ServerboundConfigurationPacket;
    type PlayClientbound = play::clientbound::ClientboundPlayPacket;
    type PlayServerbound = play::serverbound::ServerboundPlayPacket;
}