Skip to main content

ghast_protocol/generated/v1_16_5/
mod.rs

1// @generated by ghast-codegen-protocol from PrismarineJS minecraft-data 3.119.0
2// (data/pc/1.16.2/protocol.json, Minecraft 1.16.5). Do not edit; run `cargo run -p ghast-codegen-protocol`.
3// minecraft-data is MIT licensed, Copyright (c) 2015 PrismarineJS; see ../NOTICE.
4
5//! Protocol 754 (Minecraft 1.16.4 – 1.16.5), generated from minecraft-data.
6//!
7//! One module per connection state, each with `clientbound` and `serverbound`
8//! packet structs, an enum of all packets and the packet `id` constants.
9
10pub mod handshaking;
11pub mod login;
12pub mod play;
13pub mod status;
14pub mod types;
15
16/// Marker type for protocol 754 (Minecraft 1.16.4 – 1.16.5).
17#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
18pub struct V1_16_5;
19
20impl crate::packet::Version for V1_16_5 {
21    const PROTOCOL: i32 = 754;
22    const NAME: &'static str = "1.16.5";
23    const POSITION_LAYOUT: crate::types::PositionLayout = crate::types::PositionLayout::Xzy;
24    type HandshakingServerbound = handshaking::serverbound::ServerboundHandshakingPacket;
25    type StatusClientbound = status::clientbound::ClientboundStatusPacket;
26    type StatusServerbound = status::serverbound::ServerboundStatusPacket;
27    type LoginClientbound = login::clientbound::ClientboundLoginPacket;
28    type LoginServerbound = login::serverbound::ServerboundLoginPacket;
29    type PlayClientbound = play::clientbound::ClientboundPlayPacket;
30    type PlayServerbound = play::serverbound::ServerboundPlayPacket;
31}