diff options
| author | mat <github@matdoes.dev> | 2022-05-28 01:12:12 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-28 01:12:12 -0500 |
| commit | 3573eb4ba04280cd25263fbe6e468b05036bc9cb (patch) | |
| tree | 5ac6de4fe2f80a2b476304e23213f024b7bb1275 /azalea-block/src/blocks.rs | |
| parent | d56c44766e0f71f5f871b6a457174b81126a2331 (diff) | |
| download | azalea-drasl-3573eb4ba04280cd25263fbe6e468b05036bc9cb.tar.xz | |
more block macro stuff
Diffstat (limited to 'azalea-block/src/blocks.rs')
| -rw-r--r-- | azalea-block/src/blocks.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/azalea-block/src/blocks.rs b/azalea-block/src/blocks.rs index 855de96b..d4339ada 100644 --- a/azalea-block/src/blocks.rs +++ b/azalea-block/src/blocks.rs @@ -1,5 +1,10 @@ +use crate::BlockBehavior; use block_macros::make_block_states; +pub trait Block { + fn behavior(&self) -> BlockBehavior; +} + make_block_states! { PROPERTIES => { Face { @@ -31,12 +36,12 @@ make_block_states! { }; } BLOCKS => { - acacia_button => BlockBehavior::new().no_collision(), { + acacia_button => BlockBehavior::default().no_collision(), { Face, Facing, Powered }; - acacia_door => BlockBehavior::new(), { + acacia_door => BlockBehavior::default(), { Facing, Half, Hinge, |
