aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src/lib.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-03-07 22:09:56 -0600
committerGitHub <noreply@github.com>2023-03-07 22:09:56 -0600
commit5dd35c7ed82c38ef36ca28f630e8d05c5db2cbea (patch)
tree72719e46479e7884ea535c768ab7c244ce048063 /azalea-physics/src/lib.rs
parent719379a8a76ab0685f2bd14bebe2f0cd1e97f06b (diff)
downloadazalea-drasl-5dd35c7ed82c38ef36ca28f630e8d05c5db2cbea.tar.xz
Add World::find_block (#80)
* start adding World::find_block * keep working on find_block * BlockStates * fix sorting * update examples that use find_one_block * azalea_block::properties * fix tests * add a gotoblock command to testbot
Diffstat (limited to 'azalea-physics/src/lib.rs')
-rw-r--r--azalea-physics/src/lib.rs28
1 files changed, 14 insertions, 14 deletions
diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs
index e3954061..1736b8fb 100644
--- a/azalea-physics/src/lib.rs
+++ b/azalea-physics/src/lib.rs
@@ -467,8 +467,8 @@ mod tests {
.id();
let block_state = partial_world.chunks.set_block_state(
&BlockPos { x: 0, y: 69, z: 0 },
- azalea_block::StoneSlabBlock {
- kind: azalea_block::Type::Bottom,
+ azalea_block::blocks::StoneSlab {
+ kind: azalea_block::properties::Type::Bottom,
waterlogged: false,
}
.into(),
@@ -521,8 +521,8 @@ mod tests {
.id();
let block_state = world_lock.write().chunks.set_block_state(
&BlockPos { x: 0, y: 69, z: 0 },
- azalea_block::StoneSlabBlock {
- kind: azalea_block::Type::Top,
+ azalea_block::blocks::StoneSlab {
+ kind: azalea_block::properties::Type::Top,
waterlogged: false,
}
.into(),
@@ -574,11 +574,11 @@ mod tests {
.id();
let block_state = world_lock.write().chunks.set_block_state(
&BlockPos { x: 0, y: 69, z: 0 },
- azalea_block::CobblestoneWallBlock {
- east: azalea_block::EastWall::Low,
- north: azalea_block::NorthWall::Low,
- south: azalea_block::SouthWall::Low,
- west: azalea_block::WestWall::Low,
+ azalea_block::blocks::CobblestoneWall {
+ east: azalea_block::properties::EastWall::Low,
+ north: azalea_block::properties::NorthWall::Low,
+ south: azalea_block::properties::SouthWall::Low,
+ west: azalea_block::properties::WestWall::Low,
up: false,
waterlogged: false,
}
@@ -636,11 +636,11 @@ mod tests {
y: 69,
z: -8,
},
- azalea_block::CobblestoneWallBlock {
- east: azalea_block::EastWall::Low,
- north: azalea_block::NorthWall::Low,
- south: azalea_block::SouthWall::Low,
- west: azalea_block::WestWall::Low,
+ azalea_block::blocks::CobblestoneWall {
+ east: azalea_block::properties::EastWall::Low,
+ north: azalea_block::properties::NorthWall::Low,
+ south: azalea_block::properties::SouthWall::Low,
+ west: azalea_block::properties::WestWall::Low,
up: false,
waterlogged: false,
}