Skip to main content

basalt_mc_protocol/types/
mod.rs

1//! Hand-rolled protocol types — used as a deliberate exception when
2//! the codegen IR cannot model a Mojang protocol pattern cleanly.
3//!
4//! Today only [`IDSet`] qualifies: its wire format encodes the
5//! variant count in the discriminator tag itself (`tag = N + 1` for
6//! `N` inline varints), which no other Mojang type uses. Everything
7//! else — including the recursive switch-on-tag unions
8//! `RecipeDisplay` / `SlotDisplay` — is now produced by the codegen
9//! and lives under [`crate::packets::play::types`].
10
11pub mod id_set;
12
13pub use id_set::IDSet;