mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 22:52:32 +00:00
b8228a0360
* make azalea-registry crate * add trait feature to az-block * registr * registry macro * impl Display for registry things * registries
489 B
489 B
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.