Expand description
This crate provides Rust objects that map to the minecraft protocol raw JSON message format used for chat messages, books, titles…
§Serialization/Deserialization
Serialization and Deserialization is implemented using serde. Excluding a
few rare cases (mainly the storage
component and the separator
field for SelectorComponent
),
all serialization and deserialization should happen correctly.
We plan on implementing legacy text soon!
§Contributing
Please check out our github and feel free to contribute.
This crate would need more testing, all help appreciated!!
Structs§
- Chat
Component - The central building block of Minecraft’s JSON message format.
- Component
Style - The style of a
ChatComponent
- Keybind
Component - Score
Component - Selector
Component - Text
Component - Translation
Component
Enums§
- Chat
Color - The different colors a
ChatComponent
can have. - Click
Event - A ClickEvent useful in a chat message or book.
- Component
Type - The different kinds of components Minecraft chat messages
can be made up of. One component (
storage
-component, since 1.15) is missing, further research and contributions on this would be appreciated! - Hover
Event - A HoverEvent useful in a chat message or book.
Constants§
- VERSION_
1_ 7 - The version number of the Minecraft protocol for 1.7
- VERSION_
1_ 8 - The version number of the Minecraft protocol for 1.8
- VERSION_
1_ 15 - The version number of the Minecraft protocol for 1.15
- VERSION_
1_ 16 - The version number of the Minecraft protocol for 1.16