From e37524899eef8a0034faee35cef4bbf1ba779a7d Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 30 May 2025 14:44:48 -1300 Subject: formatting: merge imports --- azalea/examples/nearest_entity.rs | 10 +++++----- azalea/examples/steal.rs | 6 ++---- azalea/examples/testbot/commands.rs | 10 ++++------ azalea/examples/testbot/main.rs | 14 +++++--------- 4 files changed, 16 insertions(+), 24 deletions(-) (limited to 'azalea/examples') diff --git a/azalea/examples/nearest_entity.rs b/azalea/examples/nearest_entity.rs index 1fb6bdd1..2e6973cf 100644 --- a/azalea/examples/nearest_entity.rs +++ b/azalea/examples/nearest_entity.rs @@ -1,10 +1,10 @@ -use azalea::ClientBuilder; -use azalea::nearest_entity::EntityFinder; -use azalea::{Bot, LookAtEvent}; +use azalea::{Bot, ClientBuilder, LookAtEvent, nearest_entity::EntityFinder}; use azalea_client::Account; use azalea_core::tick::GameTick; -use azalea_entity::metadata::{ItemItem, Player}; -use azalea_entity::{EyeHeight, LocalEntity, Position}; +use azalea_entity::{ + EyeHeight, LocalEntity, Position, + metadata::{ItemItem, Player}, +}; use bevy_app::Plugin; use bevy_ecs::{ prelude::{Entity, EventWriter}, diff --git a/azalea/examples/steal.rs b/azalea/examples/steal.rs index 028c1b5a..899c2568 100644 --- a/azalea/examples/steal.rs +++ b/azalea/examples/steal.rs @@ -2,10 +2,8 @@ use std::sync::Arc; -use azalea::pathfinder::goals::RadiusGoal; -use azalea::{BlockPos, prelude::*}; -use azalea_inventory::ItemStack; -use azalea_inventory::operations::QuickMoveClick; +use azalea::{BlockPos, pathfinder::goals::RadiusGoal, prelude::*}; +use azalea_inventory::{ItemStack, operations::QuickMoveClick}; use parking_lot::Mutex; #[tokio::main] diff --git a/azalea/examples/testbot/commands.rs b/azalea/examples/testbot/commands.rs index 4e261e17..da6b7cc2 100644 --- a/azalea/examples/testbot/commands.rs +++ b/azalea/examples/testbot/commands.rs @@ -2,12 +2,10 @@ 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, GameProfileComponent, brigadier::prelude::*, chat::ChatPacket, ecs::prelude::*, + entity::metadata::Player, +}; use parking_lot::Mutex; use crate::State; diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs index 1aa9485d..8a35a281 100644 --- a/azalea/examples/testbot/main.rs +++ b/azalea/examples/testbot/main.rs @@ -25,16 +25,12 @@ mod commands; pub mod killaura; -use std::time::Duration; -use std::{env, process}; -use std::{sync::Arc, thread}; +use std::{env, process, sync::Arc, thread, time::Duration}; -use azalea::ClientInformation; -use azalea::brigadier::command_dispatcher::CommandDispatcher; -use azalea::ecs::prelude::*; -use azalea::pathfinder::debug::PathfinderDebugParticles; -use azalea::prelude::*; -use azalea::swarm::prelude::*; +use azalea::{ + ClientInformation, brigadier::command_dispatcher::CommandDispatcher, ecs::prelude::*, + pathfinder::debug::PathfinderDebugParticles, prelude::*, swarm::prelude::*, +}; use commands::{CommandSource, register_commands}; use parking_lot::Mutex; -- cgit v1.2.3