1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
azalea/azalea-block
mat e3e4ab98bc
Replace PJS generator mod with PixLyzer (#38)
* pixlizer extractor

* start working on shape extraction
2022-11-07 21:06:15 -06:00
..
azalea-block-macros chore: Release 2022-10-30 14:04:11 -05:00
src Replace PJS generator mod with PixLyzer (#38) 2022-11-07 21:06:15 -06:00
Cargo.toml chore: Release 2022-10-30 14:04:11 -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.