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:
parent
9d4f738d4e
commit
ef91f436c0
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue