mc_chat/lib.rs
1//!
2//! This crate provides Rust objects that map to the minecraft
3//! protocol raw JSON message format used for chat messages, books, titles...
4//!
5//! ### Serialization/Deserialization
6//!
7//! Serialization and Deserialization is implemented using serde. Excluding a
8//! few rare cases (mainly the `storage` component and the `separator` field for [`SelectorComponent`]),
9//! all serialization and deserialization should happen correctly.
10//!
11//! We plan on implementing legacy text soon!
12//!
13//! ### Contributing
14//!
15//! Please check out our [github](https://github.com/GrizzlT/MinecraftChatRust) and
16//! feel free to contribute.
17//!
18//! This crate would need more testing, all help appreciated!!
19
20mod component;
21mod style;
22
23mod tests;
24
25pub use component::{
26 ChatComponent, ComponentType, KeybindComponent, ScoreComponent, SelectorComponent,
27 TextComponent, TranslationComponent,
28};
29pub use style::{
30 ChatColor, ClickEvent, ComponentStyle, HoverEvent, VERSION_1_15, VERSION_1_16, VERSION_1_7,
31 VERSION_1_8,
32};