mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 23:44:38 +00:00
8 lines
420 B
Markdown
8 lines
420 B
Markdown
# 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().
|