diff options
| author | mat <git@matdoes.dev> | 2025-02-22 23:01:54 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-22 23:01:54 +0000 |
| commit | 34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6 (patch) | |
| tree | 7920fec1203e8e96463a142f5f6da6164e76e684 /azalea/examples/testbot | |
| parent | bdd2fc91e11e2896d8e1c7046df247e1075bd40d (diff) | |
| download | azalea-drasl-34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6.tar.xz | |
update to rust edition 2024
Diffstat (limited to 'azalea/examples/testbot')
| -rw-r--r-- | azalea/examples/testbot/commands.rs | 4 | ||||
| -rw-r--r-- | azalea/examples/testbot/commands/debug.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/testbot/commands/movement.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/testbot/killaura.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/testbot/main.rs | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/azalea/examples/testbot/commands.rs b/azalea/examples/testbot/commands.rs index 9cdb3cb7..c3cf1b47 100644 --- a/azalea/examples/testbot/commands.rs +++ b/azalea/examples/testbot/commands.rs @@ -2,12 +2,12 @@ pub mod combat; pub mod debug; pub mod movement; +use azalea::Client; +use azalea::GameProfileComponent; use azalea::brigadier::prelude::*; use azalea::chat::ChatPacket; use azalea::ecs::prelude::*; use azalea::entity::metadata::Player; -use azalea::Client; -use azalea::GameProfileComponent; use parking_lot::Mutex; use crate::State; diff --git a/azalea/examples/testbot/commands/debug.rs b/azalea/examples/testbot/commands/debug.rs index 10b9711d..fe552668 100644 --- a/azalea/examples/testbot/commands/debug.rs +++ b/azalea/examples/testbot/commands/debug.rs @@ -3,12 +3,12 @@ use std::{env, fs::File, io::Write, thread, time::Duration}; use azalea::{ + BlockPos, brigadier::prelude::*, entity::{LookDirection, Position}, interact::HitResultComponent, pathfinder::{ExecutingPath, Pathfinder}, world::MinecraftEntityId, - BlockPos, }; use parking_lot::Mutex; diff --git a/azalea/examples/testbot/commands/movement.rs b/azalea/examples/testbot/commands/movement.rs index b0adec8b..a8511cc5 100644 --- a/azalea/examples/testbot/commands/movement.rs +++ b/azalea/examples/testbot/commands/movement.rs @@ -1,11 +1,11 @@ use std::time::Duration; use azalea::{ + BlockPos, SprintDirection, WalkDirection, brigadier::prelude::*, entity::{EyeHeight, Position}, pathfinder::goals::{BlockPosGoal, RadiusGoal, XZGoal}, prelude::*, - BlockPos, SprintDirection, WalkDirection, }; use parking_lot::Mutex; diff --git a/azalea/examples/testbot/killaura.rs b/azalea/examples/testbot/killaura.rs index d86356fe..e98fe6ec 100644 --- a/azalea/examples/testbot/killaura.rs +++ b/azalea/examples/testbot/killaura.rs @@ -1,6 +1,6 @@ use azalea::{ ecs::prelude::*, - entity::{metadata::AbstractMonster, Dead, LocalEntity, Position}, + entity::{Dead, LocalEntity, Position, metadata::AbstractMonster}, prelude::*, world::{InstanceName, MinecraftEntityId}, }; diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs index 958c17d0..410d1b6d 100644 --- a/azalea/examples/testbot/main.rs +++ b/azalea/examples/testbot/main.rs @@ -29,13 +29,13 @@ use std::time::Duration; use std::{env, process}; use std::{sync::Arc, thread}; +use azalea::ClientInformation; use azalea::brigadier::command_dispatcher::CommandDispatcher; use azalea::ecs::prelude::*; use azalea::pathfinder::PathfinderDebugParticles; use azalea::prelude::*; use azalea::swarm::prelude::*; -use azalea::ClientInformation; -use commands::{register_commands, CommandSource}; +use commands::{CommandSource, register_commands}; use parking_lot::Mutex; #[tokio::main] |
