1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 23:44:38 +00:00

change one of the blocks examples

This commit is contained in:
Ubuntu 2023-02-10 02:06:41 +00:00
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; # use azalea_block::{Block, BlockState};
let block_state: BlockState = azalea_registry::Block::Jukebox.into(); # let block_state = BlockState::from(azalea_registry::Block::Jukebox);
let block = Box::<dyn Block>::from(block_state);
``` ```
## Block trait ## Block trait