diff options
| author | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
| commit | 6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f (patch) | |
| tree | 3b65d2984a0cffbe5acb3d44d7e3b8b145c32f95 /azalea-block/src | |
| parent | b762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff) | |
| download | azalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz | |
group imports with rustfmt
Diffstat (limited to 'azalea-block/src')
| -rwxr-xr-x | azalea-block/src/generated.rs | 6 | ||||
| -rwxr-xr-x | azalea-block/src/lib.rs | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/azalea-block/src/generated.rs b/azalea-block/src/generated.rs index 76dfb2dc..18ee93fc 100755 --- a/azalea-block/src/generated.rs +++ b/azalea-block/src/generated.rs @@ -1,7 +1,9 @@ -use crate::{Block, BlockBehavior, BlockState, BlockStates, Property}; -use azalea_block_macros::make_block_states; use std::fmt::Debug; +use azalea_block_macros::make_block_states; + +use crate::{Block, BlockBehavior, BlockState, BlockStates, Property}; + make_block_states! { Properties => { "snowy" => Snowy(bool), diff --git a/azalea-block/src/lib.rs b/azalea-block/src/lib.rs index 2a46fd01..7e6ccfaf 100755 --- a/azalea-block/src/lib.rs +++ b/azalea-block/src/lib.rs @@ -5,17 +5,17 @@ mod behavior; mod generated; mod range; -pub use generated::{blocks, properties}; - -use azalea_buf::{BufReadError, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable}; -pub use behavior::BlockBehavior; use core::fmt::Debug; -pub use range::BlockStates; use std::{ any::Any, io::{Cursor, Write}, }; +use azalea_buf::{BufReadError, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable}; +pub use behavior::BlockBehavior; +pub use generated::{blocks, properties}; +pub use range::BlockStates; + pub trait Block: Debug + Any { fn behavior(&self) -> BlockBehavior; /// Get the Minecraft ID for this block. For example `stone` or |
