diff options
| author | mat <git@matdoes.dev> | 2023-10-01 15:19:13 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-01 15:19:13 -0500 |
| commit | befa33a87950b6d0f3364cb4fe603f6d84bf4b8f (patch) | |
| tree | b46f2b76d4f7c66aef05759d33de68d88904c45b /azalea/src/pathfinder | |
| parent | 33e823d6fab990efaa735c05e4b0c42636003b76 (diff) | |
| download | azalea-drasl-befa33a87950b6d0f3364cb4fe603f6d84bf4b8f.tar.xz | |
organize azalea_core and re-export it from azalea
Diffstat (limited to 'azalea/src/pathfinder')
| -rw-r--r-- | azalea/src/pathfinder/goals.rs | 2 | ||||
| -rw-r--r-- | azalea/src/pathfinder/mod.rs | 4 | ||||
| -rw-r--r-- | azalea/src/pathfinder/moves/basic.rs | 2 | ||||
| -rw-r--r-- | azalea/src/pathfinder/moves/mod.rs | 4 | ||||
| -rw-r--r-- | azalea/src/pathfinder/moves/parkour.rs | 2 | ||||
| -rw-r--r-- | azalea/src/pathfinder/simulation.rs | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/azalea/src/pathfinder/goals.rs b/azalea/src/pathfinder/goals.rs index 29c97ff0..4e278c74 100644 --- a/azalea/src/pathfinder/goals.rs +++ b/azalea/src/pathfinder/goals.rs @@ -1,4 +1,4 @@ -use azalea_core::{BlockPos, Vec3}; +use azalea_core::position::{BlockPos, Vec3}; use super::Goal; diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index b8a02798..1b35718e 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -21,7 +21,7 @@ use crate::ecs::{ }; use azalea_client::movement::walk_listener; use azalea_client::{StartSprintEvent, StartWalkEvent}; -use azalea_core::BlockPos; +use azalea_core::position::BlockPos; use azalea_entity::metadata::Player; use azalea_entity::LocalEntity; use azalea_entity::{Physics, Position}; @@ -546,7 +546,7 @@ where mod tests { use std::{collections::HashSet, sync::Arc}; - use azalea_core::{BlockPos, ChunkPos, Vec3}; + use azalea_core::position::{BlockPos, ChunkPos, Vec3}; use azalea_world::{Chunk, ChunkStorage, PartialChunkStorage}; use log::info; diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index b8cbbbb7..abd750b3 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -1,7 +1,7 @@ use std::f32::consts::SQRT_2; use azalea_client::{SprintDirection, StartSprintEvent, StartWalkEvent, WalkDirection}; -use azalea_core::{BlockPos, CardinalDirection}; +use azalea_core::{direction::CardinalDirection, position::BlockPos}; use azalea_world::Instance; use crate::{ diff --git a/azalea/src/pathfinder/moves/mod.rs b/azalea/src/pathfinder/moves/mod.rs index f3ed7dff..d631ac8a 100644 --- a/azalea/src/pathfinder/moves/mod.rs +++ b/azalea/src/pathfinder/moves/mod.rs @@ -7,7 +7,7 @@ use crate::{JumpEvent, LookAtEvent}; use super::astar; use azalea_client::{StartSprintEvent, StartWalkEvent}; -use azalea_core::{BlockPos, Vec3}; +use azalea_core::position::{BlockPos, Vec3}; use azalea_physics::collision::{self, BlockWithShape}; use azalea_world::Instance; use bevy_ecs::{entity::Entity, event::EventWriter}; @@ -137,7 +137,7 @@ pub fn default_is_reached( mod tests { use super::*; use azalea_block::BlockState; - use azalea_core::ChunkPos; + use azalea_core::position::ChunkPos; use azalea_world::{Chunk, ChunkStorage, PartialInstance}; #[test] diff --git a/azalea/src/pathfinder/moves/parkour.rs b/azalea/src/pathfinder/moves/parkour.rs index 5f81149b..ab9c509c 100644 --- a/azalea/src/pathfinder/moves/parkour.rs +++ b/azalea/src/pathfinder/moves/parkour.rs @@ -1,5 +1,5 @@ use azalea_client::{SprintDirection, StartSprintEvent, StartWalkEvent, WalkDirection}; -use azalea_core::{BlockPos, CardinalDirection}; +use azalea_core::{direction::CardinalDirection, position::BlockPos}; use azalea_world::Instance; use crate::{ diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs index e0f82433..565e3e92 100644 --- a/azalea/src/pathfinder/simulation.rs +++ b/azalea/src/pathfinder/simulation.rs @@ -3,7 +3,7 @@ use std::{sync::Arc, time::Duration}; use azalea_client::PhysicsState; -use azalea_core::{ResourceLocation, Vec3}; +use azalea_core::{position::Vec3, resource_location::ResourceLocation}; use azalea_entity::{ attributes::AttributeInstance, metadata::Sprinting, Attributes, EntityDimensions, Physics, Position, |
