aboutsummaryrefslogtreecommitdiff
path: root/azalea-block/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-11 09:36:08 -0500
committermat <github@matdoes.dev>2022-06-11 09:36:08 -0500
commit6926907528135f7b6c891540b1aa2fdbe7696014 (patch)
treed710d6b53bc375d1ea8094ea21970426177314d8 /azalea-block/src
parent8c5d7407fe9a7f23e19b3ecf02c4cb7848fb4d29 (diff)
downloadazalea-drasl-6926907528135f7b6c891540b1aa2fdbe7696014.tar.xz
Clean code a little
Diffstat (limited to 'azalea-block/src')
-rw-r--r--azalea-block/src/blocks.rs76
1 files changed, 38 insertions, 38 deletions
diff --git a/azalea-block/src/blocks.rs b/azalea-block/src/blocks.rs
index ea58c062..71d04f99 100644
--- a/azalea-block/src/blocks.rs
+++ b/azalea-block/src/blocks.rs
@@ -8,6 +8,11 @@ pub trait Block {
make_block_states! {
Properties => {
+ Face {
+ Floor,
+ Wall,
+ Ceiling,
+ },
Facing {
North,
South,
@@ -18,24 +23,15 @@ make_block_states! {
True,
False,
},
- Face {
- Floor,
- Wall,
- Ceiling,
- },
Half {
Top,
Bottom,
},
- Open {
- True,
- False,
- },
Hinge {
Left,
Right,
},
- North {
+ Open {
True,
False,
},
@@ -43,7 +39,7 @@ make_block_states! {
True,
False,
},
- West {
+ North {
True,
False,
},
@@ -55,6 +51,10 @@ make_block_states! {
True,
False,
},
+ West {
+ True,
+ False,
+ },
InWall {
True,
False,
@@ -111,26 +111,26 @@ make_block_states! {
OuterLeft,
OuterRight,
},
- Up {
- True,
- False,
- },
- NorthWall {
+ EastWall {
None,
Low,
Tall,
},
- EastWall {
+ NorthWall {
None,
Low,
Tall,
},
- WestWall {
+ SouthWall {
None,
Low,
Tall,
},
- SouthWall {
+ Up {
+ True,
+ False,
+ },
+ WestWall {
None,
Low,
Tall,
@@ -170,14 +170,14 @@ make_block_states! {
Partial,
Full,
},
- Part {
- Head,
- Foot,
- },
Occupied {
True,
False,
},
+ Part {
+ Head,
+ Foot,
+ },
Candles {
_1,
_2,
@@ -228,6 +228,10 @@ make_block_states! {
_2,
_3,
},
+ Inverted {
+ True,
+ False,
+ },
Power {
_0,
_1,
@@ -246,10 +250,6 @@ make_block_states! {
_14,
_15,
},
- Inverted {
- True,
- False,
- },
Triggered {
True,
False,
@@ -355,10 +355,6 @@ make_block_states! {
True,
False,
},
- TipDirection {
- Up,
- Down,
- },
Thickness {
TipMerge,
Tip,
@@ -366,6 +362,10 @@ make_block_states! {
Middle,
Base,
},
+ TipDirection {
+ Up,
+ Down,
+ },
Delay {
_1,
_2,
@@ -396,11 +396,11 @@ make_block_states! {
Active,
Cooldown,
},
- Shrieking {
+ CanSummon {
True,
False,
},
- CanSummon {
+ Shrieking {
True,
False,
},
@@ -450,17 +450,17 @@ make_block_states! {
True,
False,
},
- Hatch {
- _0,
- _1,
- _2,
- },
Eggs {
_1,
_2,
_3,
_4,
},
+ Hatch {
+ _0,
+ _1,
+ _2,
+ },
},
Blocks => {
acacia_button => BlockBehavior::default(), {