1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

change one of the blocks examples

This commit is contained in:
Ubuntu 2023-02-10 02:06:41 +00:00
parent 9d4f738d4e
commit ef91f436c0

View file

@ -8,8 +8,9 @@ There's three block types, used for different things. You can (mostly) freely co
```
# use azalea_block::BlockState;
let block_state: BlockState = azalea_registry::Block::Jukebox.into();
# use azalea_block::{Block, BlockState};
# let block_state = BlockState::from(azalea_registry::Block::Jukebox);
let block = Box::<dyn Block>::from(block_state);
```
## Block trait