azalea/azalea-block
mat bc3aa9467a
Replace impl Read with Cursor<&[u8]> (#26)
* Start getting rid of Cursor

* try to make the tests pass and fail

* make the tests pass

* remove unused uses

* fix clippy warnings

* fix potential OOM exploits

* fix OOM in az-nbt

* fix nbt benchmark

* fix a test

* start replacing it with Cursor<Vec<u8>>

* wip

* fix all the issues

* fix all tests

* fix nbt benchmark

* fix warnings
2022-10-07 20:12:36 -05:00
..
azalea-block-macros All block shapes & collisions (#22) 2022-10-02 12:29:47 -05:00
src Replace impl Read with Cursor<&[u8]> (#26) 2022-10-07 20:12:36 -05:00
Cargo.toml use az-registry in az-protocol 2022-09-05 11:44:48 -05:00
README.md Azalea registry (#20) 2022-08-27 20:31:21 -05:00

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.