5 releases (breaking)

0.5.0 Dec 9, 2022
0.4.0 Nov 19, 2022
0.3.0 Oct 30, 2022
0.2.0 Oct 17, 2022
0.1.0 Aug 30, 2022

#1513 in Network programming

Download history 40/week @ 2022-10-13 28/week @ 2022-10-20 71/week @ 2022-10-27 62/week @ 2022-11-03 28/week @ 2022-11-10 85/week @ 2022-11-17 21/week @ 2022-11-24 22/week @ 2022-12-01 102/week @ 2022-12-08 16/week @ 2022-12-15 33/week @ 2022-12-22 26/week @ 2022-12-29 23/week @ 2023-01-05 21/week @ 2023-01-12 29/week @ 2023-01-19 35/week @ 2023-01-26

113 downloads per month
Used in 5 crates

MIT license

180KB
6K SLoC

Azalea Block

Representation of Minecraft block states.

There's two main things here, the BlockState enum and the Block trait. BlockState is a simple enum with every possible block state as variant, and Block is a heavier trait which lets you access information about a block more easily.

Every block is a struct that implements Block. You can freely convert between BlockState and Block with .into().

If you don't want the Block trait, set default-features to false.

Dependencies

~2.9–8MB
~122K SLoC