Crate mc_chat[][src]

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

The central building block of Minecraft’s JSON message format.

Enums

The different colors a ChatComponent can have.

A ClickEvent useful in a chat message or book.

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!

A HoverEvent useful in a chat message or book.

Constants

The version number of the Minecraft protocol for 1.7

The version number of the Minecraft protocol for 1.8

The version number of the Minecraft protocol for 1.15

The version number of the Minecraft protocol for 1.16