nightly bird-chat

Minecraft components on rust

2 releases

0.1.3 Jul 24, 2022
0.1.0 Jun 30, 2022

#471 in Games


Used in 2 crates (via bird-protocol)

MIT license

22KB
540 lines

bird-chat

bird-chat is implementation of minecraft chat components on rust with serde support.

Installing

https://crates.io/crates/bird-chat

Usage

let mut component = TextComponent::new("hi".into());
component.base.bold = Some(true);
component.base.color = Some(DefaultColor::Red.into());
component.base.extra = vec![
  {
    let mut component = TextComponent::new("bye".into());
    component.base.color = Some(DefaultColor::White.into());
    component.base.bold = Some(false);
    component.into()
  }
];

Dependencies

~1–1.9MB
~40K SLoC