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/src/pathfinder/moves | |
| parent | b762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff) | |
| download | azalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz | |
group imports with rustfmt
Diffstat (limited to 'azalea/src/pathfinder/moves')
| -rw-r--r-- | azalea/src/pathfinder/moves/basic.rs | 3 | ||||
| -rw-r--r-- | azalea/src/pathfinder/moves/mod.rs | 14 | ||||
| -rw-r--r-- | azalea/src/pathfinder/moves/parkour.rs | 3 |
3 files changed, 9 insertions, 11 deletions
diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index 54a6dc6a..bb931caf 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -6,9 +6,8 @@ use azalea_core::{ position::{BlockPos, Vec3}, }; -use crate::pathfinder::{astar, costs::*}; - use super::{default_is_reached, Edge, ExecuteCtx, IsReachedCtx, MoveData, PathfinderCtx}; +use crate::pathfinder::{astar, costs::*}; pub fn basic_move(ctx: &mut PathfinderCtx, node: BlockPos) { forward_move(ctx, node); diff --git a/azalea/src/pathfinder/moves/mod.rs b/azalea/src/pathfinder/moves/mod.rs index bb10b192..28974132 100644 --- a/azalea/src/pathfinder/moves/mod.rs +++ b/azalea/src/pathfinder/moves/mod.rs @@ -3,13 +3,6 @@ pub mod parkour; use std::{fmt::Debug, sync::Arc}; -use crate::{auto_tool::best_tool_in_hotbar_for_block, JumpEvent, LookAtEvent}; - -use super::{ - astar, - mining::MiningCache, - world::{is_block_state_passable, CachedWorld}, -}; use azalea_client::{ inventory::SetSelectedHotbarSlotEvent, mining::StartMiningBlockEvent, SprintDirection, StartSprintEvent, StartWalkEvent, WalkDirection, @@ -20,6 +13,13 @@ use azalea_world::Instance; use bevy_ecs::{entity::Entity, event::EventWriter}; use parking_lot::RwLock; +use super::{ + astar, + mining::MiningCache, + world::{is_block_state_passable, CachedWorld}, +}; +use crate::{auto_tool::best_tool_in_hotbar_for_block, JumpEvent, LookAtEvent}; + type Edge = astar::Edge<BlockPos, MoveData>; pub type SuccessorsFn = fn(&mut PathfinderCtx, BlockPos); diff --git a/azalea/src/pathfinder/moves/parkour.rs b/azalea/src/pathfinder/moves/parkour.rs index 66f02197..0f279dca 100644 --- a/azalea/src/pathfinder/moves/parkour.rs +++ b/azalea/src/pathfinder/moves/parkour.rs @@ -1,9 +1,8 @@ use azalea_client::{SprintDirection, WalkDirection}; use azalea_core::{direction::CardinalDirection, position::BlockPos}; -use crate::pathfinder::{astar, costs::*}; - use super::{Edge, ExecuteCtx, IsReachedCtx, MoveData, PathfinderCtx}; +use crate::pathfinder::{astar, costs::*}; pub fn parkour_move(ctx: &mut PathfinderCtx, node: BlockPos) { parkour_forward_1_move(ctx, node); |
