mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
organize azalea_core and re-export it from azalea
This commit is contained in:
parent
33e823d6fa
commit
befa33a879
109 changed files with 199 additions and 156 deletions
|
@ -1,4 +1,4 @@
|
|||
use azalea_core::GameMode;
|
||||
use azalea_core::game_type::GameMode;
|
||||
use azalea_entity::{
|
||||
metadata::{ShiftKeyDown, Sprinting},
|
||||
update_bounding_box, Attributes, Physics,
|
||||
|
|
|
@ -23,7 +23,7 @@ use crate::{
|
|||
use azalea_auth::{game_profile::GameProfile, sessionserver::ClientSessionServerError};
|
||||
use azalea_buf::McBufWritable;
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::{ResourceLocation, Vec3};
|
||||
use azalea_core::{position::Vec3, resource_location::ResourceLocation};
|
||||
use azalea_entity::{
|
||||
indexing::{EntityIdIndex, EntityUuidIndex},
|
||||
metadata::Health,
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
use std::ops::AddAssign;
|
||||
|
||||
use azalea_block::BlockState;
|
||||
use azalea_core::{BlockHitResult, BlockPos, Direction, GameMode, Vec3};
|
||||
use azalea_core::{
|
||||
block_hit_result::BlockHitResult,
|
||||
direction::Direction,
|
||||
game_type::GameMode,
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
use azalea_entity::{
|
||||
clamp_look_direction, view_vector, Attributes, EyeHeight, LocalEntity, LookDirection, Position,
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::{collections::HashMap, io, sync::Arc};
|
||||
|
||||
use azalea_auth::game_profile::GameProfile;
|
||||
use azalea_core::GameMode;
|
||||
use azalea_core::game_type::GameMode;
|
||||
use azalea_entity::Dead;
|
||||
use azalea_protocol::packets::game::{
|
||||
clientbound_player_abilities_packet::ClientboundPlayerAbilitiesPacket, ServerboundGamePacket,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_block::{Block, BlockState, FluidState};
|
||||
use azalea_core::{BlockPos, Direction, GameMode};
|
||||
use azalea_core::{direction::Direction, game_type::GameMode, position::BlockPos};
|
||||
use azalea_entity::{mining::get_mine_progress, FluidOnEyes, Physics};
|
||||
use azalea_inventory::ItemSlot;
|
||||
use azalea_physics::PhysicsSet;
|
||||
|
|
|
@ -5,7 +5,11 @@ use std::{
|
|||
};
|
||||
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::{ChunkPos, GameMode, ResourceLocation, Vec3};
|
||||
use azalea_core::{
|
||||
game_type::GameMode,
|
||||
position::{ChunkPos, Vec3},
|
||||
resource_location::ResourceLocation,
|
||||
};
|
||||
use azalea_entity::{
|
||||
indexing::{EntityIdIndex, EntityUuidIndex},
|
||||
metadata::{apply_metadata, Health, PlayerMetadataBundle},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_auth::game_profile::GameProfile;
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::GameMode;
|
||||
use azalea_core::game_type::GameMode;
|
||||
use azalea_entity::indexing::EntityUuidIndex;
|
||||
use bevy_ecs::{
|
||||
event::EventReader,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_nbt::Nbt;
|
||||
use azalea_protocol::packets::configuration::clientbound_registry_data_packet::registry::{
|
||||
DimensionTypeElement, RegistryType,
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
use crate::{Axis, BlockHitResult, BlockPos, Direction, Vec3};
|
||||
|
||||
pub const EPSILON: f64 = 1.0E-7;
|
||||
use crate::{
|
||||
block_hit_result::BlockHitResult,
|
||||
direction::{Axis, Direction},
|
||||
math::EPSILON,
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
|
||||
/// A rectangular prism with a starting and ending point.
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Default)]
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
use crate::{BlockPos, Direction, Vec3};
|
||||
use crate::{
|
||||
direction::Direction,
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct BlockHitResult {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::BlockPos;
|
||||
use crate::position::BlockPos;
|
||||
|
||||
pub struct Cursor3d {
|
||||
index: usize,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::Vec3;
|
||||
use crate::position::Vec3;
|
||||
pub use azalea_buf::McBuf;
|
||||
|
||||
pub trait PositionDeltaTrait {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::McBuf;
|
||||
|
||||
use crate::Vec3;
|
||||
use crate::position::Vec3;
|
||||
|
||||
#[derive(Clone, Copy, Debug, McBuf, Default, Eq, PartialEq)]
|
||||
pub enum Direction {
|
||||
|
|
|
@ -5,37 +5,16 @@
|
|||
#![allow(incomplete_features)]
|
||||
#![feature(generic_const_exprs)]
|
||||
|
||||
mod difficulty;
|
||||
pub use difficulty::*;
|
||||
|
||||
mod resource_location;
|
||||
pub use resource_location::*;
|
||||
|
||||
mod game_type;
|
||||
pub use game_type::*;
|
||||
|
||||
mod position;
|
||||
pub use position::*;
|
||||
|
||||
mod direction;
|
||||
pub use direction::*;
|
||||
|
||||
mod delta;
|
||||
pub use delta::*;
|
||||
|
||||
pub mod particle;
|
||||
|
||||
mod cursor3d;
|
||||
pub use cursor3d::*;
|
||||
|
||||
mod bitset;
|
||||
pub use bitset::*;
|
||||
|
||||
mod aabb;
|
||||
pub use aabb::*;
|
||||
|
||||
mod block_hit_result;
|
||||
pub use block_hit_result::*;
|
||||
|
||||
pub mod aabb;
|
||||
pub mod bitset;
|
||||
pub mod block_hit_result;
|
||||
pub mod cursor3d;
|
||||
pub mod delta;
|
||||
pub mod difficulty;
|
||||
pub mod direction;
|
||||
pub mod game_type;
|
||||
pub mod math;
|
||||
pub mod particle;
|
||||
pub mod position;
|
||||
pub mod resource_location;
|
||||
pub mod tier;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
use std::{f64::consts::PI, sync::LazyLock};
|
||||
|
||||
pub const EPSILON: f64 = 1.0E-7;
|
||||
|
||||
pub static SIN: LazyLock<[f32; 65536]> = LazyLock::new(|| {
|
||||
let mut sin = [0.0; 65536];
|
||||
for (i, item) in sin.iter_mut().enumerate() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::BlockPos;
|
||||
use crate::position::BlockPos;
|
||||
use azalea_buf::McBuf;
|
||||
use azalea_inventory::ItemSlot;
|
||||
|
||||
|
|
|
@ -1,10 +1,16 @@
|
|||
use crate::ResourceLocation;
|
||||
//! Representations of positions of various things in Minecraft.
|
||||
//!
|
||||
//! The most common ones are [`Vec3`] and [`BlockPos`], which are usually used
|
||||
//! for entity positions and block positions, respectively.
|
||||
|
||||
use azalea_buf::{BufReadError, McBuf, McBufReadable, McBufWritable};
|
||||
use std::{
|
||||
io::{Cursor, Write},
|
||||
ops::{Add, AddAssign, Mul, Rem, Sub},
|
||||
};
|
||||
|
||||
use crate::resource_location::ResourceLocation;
|
||||
|
||||
macro_rules! vec3_impl {
|
||||
($name:ident, $type:ty) => {
|
||||
impl $name {
|
||||
|
|
|
@ -4,7 +4,11 @@ use azalea_buf::{
|
|||
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
|
||||
};
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::{particle::Particle, BlockPos, Direction, GlobalPos, Vec3};
|
||||
use azalea_core::{
|
||||
direction::Direction,
|
||||
particle::Particle,
|
||||
position::{BlockPos, GlobalPos, Vec3},
|
||||
};
|
||||
use azalea_inventory::ItemSlot;
|
||||
use bevy_ecs::component::Component;
|
||||
use derive_more::Deref;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use azalea_core::{Vec3, AABB};
|
||||
use azalea_core::{aabb::AABB, position::Vec3};
|
||||
|
||||
#[derive(Debug, Default, Clone)]
|
||||
pub struct EntityDimensions {
|
||||
|
|
|
@ -12,7 +12,12 @@ mod plugin;
|
|||
use self::attributes::AttributeInstance;
|
||||
pub use attributes::Attributes;
|
||||
use azalea_block::BlockState;
|
||||
use azalea_core::{math, BlockPos, ChunkPos, ResourceLocation, Vec3, AABB};
|
||||
use azalea_core::{
|
||||
aabb::AABB,
|
||||
math,
|
||||
position::{BlockPos, ChunkPos, Vec3},
|
||||
resource_location::ResourceLocation,
|
||||
};
|
||||
use azalea_world::{ChunkStorage, InstanceName};
|
||||
use bevy_ecs::{bundle::Bundle, component::Component};
|
||||
pub use data::*;
|
||||
|
|
|
@ -8,7 +8,11 @@ use super::{
|
|||
SnifferState, VillagerData,
|
||||
};
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::{particle::Particle, BlockPos, Direction, Vec3};
|
||||
use azalea_core::{
|
||||
direction::Direction,
|
||||
particle::Particle,
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
use azalea_inventory::ItemSlot;
|
||||
use bevy_ecs::{bundle::Bundle, component::Component};
|
||||
use derive_more::{Deref, DerefMut};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Stuff related to entity indexes and keeping track of entities in the world.
|
||||
|
||||
use azalea_core::ChunkPos;
|
||||
use azalea_core::position::ChunkPos;
|
||||
use azalea_world::{Instance, InstanceContainer, InstanceName, MinecraftEntityId};
|
||||
use bevy_ecs::{
|
||||
component::Component,
|
||||
|
|
|
@ -3,7 +3,7 @@ mod relative_updates;
|
|||
|
||||
use std::collections::HashSet;
|
||||
|
||||
use azalea_core::{BlockPos, ChunkPos, Vec3};
|
||||
use azalea_core::position::{BlockPos, ChunkPos, Vec3};
|
||||
use azalea_world::{InstanceContainer, InstanceName, MinecraftEntityId};
|
||||
use bevy_app::{App, Plugin, PreUpdate, Update};
|
||||
use bevy_ecs::prelude::*;
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
use azalea_block::BlockState;
|
||||
use azalea_core::{math::lerp, BlockHitResult, BlockPos, Direction, Vec3, EPSILON};
|
||||
use azalea_core::{
|
||||
block_hit_result::BlockHitResult,
|
||||
direction::Direction,
|
||||
math::{lerp, EPSILON},
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
use azalea_inventory::ItemSlot;
|
||||
use azalea_world::ChunkStorage;
|
||||
use bevy_ecs::entity::Entity;
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
use azalea_core::{
|
||||
bitset::BitSet,
|
||||
direction::{Axis, AxisCycle},
|
||||
};
|
||||
|
||||
use super::mergers::IndexMerger;
|
||||
use azalea_core::{Axis, AxisCycle, BitSet};
|
||||
|
||||
pub trait IntLineConsumer = FnMut(u32, u32, u32, u32, u32, u32);
|
||||
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
use std::{cmp::Ordering, convert::TryInto};
|
||||
|
||||
use super::CubePointRange;
|
||||
use azalea_core::{
|
||||
math::{gcd, lcm},
|
||||
EPSILON,
|
||||
};
|
||||
use azalea_core::math::{gcd, lcm, EPSILON};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum IndexMerger {
|
||||
|
|
|
@ -6,7 +6,7 @@ mod world_collisions;
|
|||
|
||||
use std::ops::Add;
|
||||
|
||||
use azalea_core::{Axis, Vec3, AABB, EPSILON};
|
||||
use azalea_core::{aabb::AABB, direction::Axis, math::EPSILON, position::Vec3};
|
||||
use azalea_world::{Instance, MoveEntityError};
|
||||
use bevy_ecs::world::Mut;
|
||||
pub use blocks::BlockWithShape;
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
use super::mergers::IndexMerger;
|
||||
use crate::collision::{BitSetDiscreteVoxelShape, DiscreteVoxelShape, AABB};
|
||||
use azalea_core::{
|
||||
math::binary_search, Axis, AxisCycle, BlockHitResult, BlockPos, Direction, Vec3, EPSILON,
|
||||
block_hit_result::BlockHitResult,
|
||||
direction::{Axis, AxisCycle, Direction},
|
||||
math::{binary_search, EPSILON},
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
use std::{cmp, num::NonZeroU32};
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
use super::Shapes;
|
||||
use crate::collision::{BlockWithShape, VoxelShape, AABB};
|
||||
use azalea_block::BlockState;
|
||||
use azalea_core::{ChunkPos, ChunkSectionPos, Cursor3d, CursorIterationType, EPSILON};
|
||||
use azalea_core::{
|
||||
cursor3d::{Cursor3d, CursorIterationType},
|
||||
math::EPSILON,
|
||||
position::{ChunkPos, ChunkSectionPos},
|
||||
};
|
||||
use azalea_world::{Chunk, Instance};
|
||||
use parking_lot::RwLock;
|
||||
use std::sync::Arc;
|
||||
|
|
|
@ -5,7 +5,10 @@ pub mod clip;
|
|||
pub mod collision;
|
||||
|
||||
use azalea_block::{Block, BlockState};
|
||||
use azalea_core::{math, BlockPos, Vec3};
|
||||
use azalea_core::{
|
||||
math,
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
use azalea_entity::{
|
||||
metadata::Sprinting, move_relative, Attributes, InLoadedChunk, Jumping, LocalEntity,
|
||||
LookDirection, Physics, Position,
|
||||
|
@ -334,7 +337,7 @@ mod tests {
|
|||
use std::time::Duration;
|
||||
|
||||
use super::*;
|
||||
use azalea_core::{ChunkPos, ResourceLocation};
|
||||
use azalea_core::{position::ChunkPos, resource_location::ResourceLocation};
|
||||
use azalea_entity::{EntityBundle, EntityPlugin};
|
||||
use azalea_world::{Chunk, MinecraftEntityId, PartialInstance};
|
||||
use bevy_app::App;
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::{GameMode, GlobalPos, OptionalGameType, ResourceLocation};
|
||||
use azalea_core::{
|
||||
game_type::{GameMode, OptionalGameType},
|
||||
position::GlobalPos,
|
||||
resource_location::ResourceLocation,
|
||||
};
|
||||
|
||||
#[derive(Clone, Debug, McBuf)]
|
||||
pub struct CommonPlayerSpawnInfo {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_buf::UnsizedByteArray;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundConfigurationPacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundConfigurationPacket)]
|
||||
|
|
|
@ -18,7 +18,7 @@ pub mod registry {
|
|||
//! biomes.
|
||||
|
||||
use azalea_buf::{BufReadError, McBufReadable, McBufWritable};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_nbt::Nbt;
|
||||
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
|
||||
use std::{collections::HashMap, io::Cursor};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundConfigurationPacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundConfigurationPacket)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::{BufReadError, McBuf, McBufVarReadable, McBufVarWritable};
|
||||
use azalea_buf::{McBufReadable, McBufWritable};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundConfigurationPacket;
|
||||
use std::io::Cursor;
|
||||
use std::ops::Deref;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::{McBuf, McBufReadable, McBufWritable};
|
||||
use azalea_core::FixedBitSet;
|
||||
use azalea_core::bitset::FixedBitSet;
|
||||
use azalea_protocol_macros::ServerboundConfigurationPacket;
|
||||
use bevy_ecs::component::Component;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_buf::UnsizedByteArray;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ServerboundConfigurationPacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundConfigurationPacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::{ResourceLocation, Vec3};
|
||||
use azalea_core::{position::Vec3, resource_location::ResourceLocation};
|
||||
use azalea_entity::{metadata::apply_default_metadata, EntityBundle};
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use uuid::Uuid;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use azalea_registry::Block;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_block::BlockState;
|
||||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -2,7 +2,7 @@ use azalea_buf::{
|
|||
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
|
||||
};
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::FixedBitSet;
|
||||
use azalea_core::bitset::FixedBitSet;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::io::Cursor;
|
||||
use std::io::Write;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::Difficulty;
|
||||
use azalea_core::difficulty::Difficulty;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ChunkPos;
|
||||
use azalea_core::position::ChunkPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use azalea_buf::{
|
||||
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
|
||||
};
|
||||
use azalea_core::{FixedBitSet, ResourceLocation};
|
||||
use azalea_core::{bitset::FixedBitSet, resource_location::ResourceLocation};
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use log::warn;
|
||||
use std::io::{Cursor, Write};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_buf::UnsizedByteArray;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::io::{Cursor, Write};
|
||||
|
||||
use azalea_buf::{McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable};
|
||||
use azalea_core::Vec3;
|
||||
use azalea_core::position::Vec3;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::io::{Cursor, Write};
|
||||
|
||||
use azalea_buf::{BufReadError, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable};
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ChunkPos;
|
||||
use azalea_core::position::ChunkPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BitSet;
|
||||
use azalea_core::bitset::BitSet;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::packets::common::CommonPlayerSpawnInfo;
|
||||
|
||||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
/// The first packet sent by the server to the client after login.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::PositionDelta8;
|
||||
use azalea_core::delta::PositionDelta8;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::PositionDelta8;
|
||||
use azalea_core::delta::PositionDelta8;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
/// This packet is sent by the server when an entity moves less then 8 blocks.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::{BufReadError, McBuf};
|
||||
use azalea_buf::{McBufReadable, McBufWritable};
|
||||
use azalea_core::FixedBitSet;
|
||||
use azalea_core::bitset::FixedBitSet;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::io::{Cursor, Write};
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ use azalea_chat::{
|
|||
translatable_component::{StringOrComponent, TranslatableComponent},
|
||||
FormattedText,
|
||||
};
|
||||
use azalea_core::BitSet;
|
||||
use azalea_core::bitset::BitSet;
|
||||
use azalea_crypto::MessageSignature;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::io::{Cursor, Write};
|
||||
|
|
|
@ -3,7 +3,7 @@ use azalea_buf::{
|
|||
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
|
||||
};
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::{FixedBitSet, GameMode};
|
||||
use azalea_core::{bitset::FixedBitSet, game_type::GameMode};
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::io::{Cursor, Write};
|
||||
|
||||
use azalea_buf::{BufReadError, McBuf, McBufReadable, McBufWritable};
|
||||
use azalea_core::FixedBitSet;
|
||||
use azalea_core::bitset::FixedBitSet;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use azalea_buf::{
|
||||
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
|
||||
};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::io::{Cursor, Write};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ use azalea_block::BlockState;
|
|||
use azalea_buf::{
|
||||
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
|
||||
};
|
||||
use azalea_core::{ChunkSectionBlockPos, ChunkSectionPos};
|
||||
use azalea_core::position::{ChunkSectionBlockPos, ChunkSectionPos};
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::{BufReadError, McBufReadable, McBufWritable};
|
||||
use azalea_core::{FixedBitSet, ResourceLocation};
|
||||
use azalea_core::{bitset::FixedBitSet, resource_location::ResourceLocation};
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::io::{Cursor, Write};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::Vec3;
|
||||
use azalea_core::position::Vec3;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_chat::FormattedText;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_inventory::ItemSlot;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::collections::HashMap;
|
||||
|
@ -119,7 +119,7 @@ pub struct AdvancementHolder {
|
|||
mod tests {
|
||||
use super::*;
|
||||
use azalea_buf::{McBufReadable, McBufWritable};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use std::io::Cursor;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_entity::attributes::AttributeModifier;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use azalea_buf::{
|
||||
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
|
||||
};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_inventory::ItemSlot;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use azalea_registry::RecipeSerializer;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::{BufReadError, McBuf, McBufVarReadable, McBufVarWritable};
|
||||
use azalea_buf::{McBufReadable, McBufWritable};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use std::io::Cursor;
|
||||
use std::ops::Deref;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::Difficulty;
|
||||
use azalea_core::difficulty::Difficulty;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::FixedBitSet;
|
||||
use azalea_core::bitset::FixedBitSet;
|
||||
use azalea_crypto::MessageSignature;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_buf::UnsizedByteArray;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::packets::BufReadError;
|
||||
use azalea_buf::{McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable};
|
||||
use azalea_core::Vec3;
|
||||
use azalea_core::position::Vec3;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use std::io::{Cursor, Write};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::packets::BufReadError;
|
||||
use azalea_buf::{McBufReadable, McBufWritable};
|
||||
use azalea_core::FixedBitSet;
|
||||
use azalea_core::bitset::FixedBitSet;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use std::io::Cursor;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::Direction;
|
||||
use azalea_core::direction::Direction;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::io::Cursor;
|
|||
|
||||
use azalea_buf::BufReadError;
|
||||
use azalea_buf::{McBufReadable, McBufWritable};
|
||||
use azalea_core::FixedBitSet;
|
||||
use azalea_core::bitset::FixedBitSet;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::packets::BufReadError;
|
||||
use azalea_buf::{McBuf, McBufReadable, McBufWritable};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use std::io::Cursor;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::packets::McBufWritable;
|
||||
use azalea_buf::{BufReadError, McBuf, McBufReadable};
|
||||
use azalea_core::{BlockPos, FixedBitSet};
|
||||
use azalea_core::{bitset::FixedBitSet, position::BlockPos};
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use std::io::Cursor;
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ use crate::packets::BufReadError;
|
|||
use crate::packets::McBufWritable;
|
||||
use azalea_buf::McBuf;
|
||||
use azalea_buf::McBufReadable;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use std::io::Cursor;
|
||||
use std::io::Write;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::packets::BufReadError;
|
||||
use azalea_buf::McBuf;
|
||||
use azalea_buf::{McBufReadable, McBufWritable};
|
||||
use azalea_core::{BlockPos, FixedBitSet};
|
||||
use azalea_core::{bitset::FixedBitSet, position::BlockPos};
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use std::io::{Cursor, Write};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
use crate::packets::game::serverbound_interact_packet::InteractionHand;
|
||||
use azalea_buf::{BufReadError, McBuf, McBufReadable, McBufWritable};
|
||||
use azalea_core::{BlockPos, Direction, Vec3};
|
||||
use azalea_core::{
|
||||
direction::Direction,
|
||||
position::{BlockPos, Vec3},
|
||||
};
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use std::io::{Cursor, Write};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use azalea_buf::{McBuf, UnsizedByteArray};
|
||||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use azalea_protocol_macros::ClientboundLoginPacket;
|
||||
use std::hash::Hash;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ use crate::palette::PalettedContainer;
|
|||
use crate::palette::PalettedContainerKind;
|
||||
use azalea_block::BlockState;
|
||||
use azalea_buf::{BufReadError, McBufReadable, McBufWritable};
|
||||
use azalea_core::{BlockPos, ChunkBlockPos, ChunkPos, ChunkSectionBlockPos};
|
||||
use azalea_core::position::{BlockPos, ChunkBlockPos, ChunkPos, ChunkSectionBlockPos};
|
||||
use azalea_nbt::NbtCompound;
|
||||
use log::{debug, trace, warn};
|
||||
use parking_lot::RwLock;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use azalea_core::ResourceLocation;
|
||||
use azalea_core::resource_location::ResourceLocation;
|
||||
use bevy_ecs::{component::Component, system::Resource};
|
||||
use derive_more::{Deref, DerefMut};
|
||||
use log::error;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::{fmt::Display, str::FromStr};
|
||||
|
||||
use azalea_block::BlockState;
|
||||
use azalea_core::{math, ChunkBlockPos};
|
||||
use azalea_core::{math, position::ChunkBlockPos};
|
||||
use azalea_registry::tags::blocks::LEAVES;
|
||||
|
||||
use crate::{chunk_storage::get_block_state_from_sections, BitStorage, Section};
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
//! Iterators for iterating over Minecraft blocks and chunks, based on
|
||||
//! [prismarine-world's iterators](https://github.com/PrismarineJS/prismarine-world/blob/master/src/iterators.js).
|
||||
|
||||
use azalea_core::{BlockPos, ChunkPos};
|
||||
use azalea_core::position::{BlockPos, ChunkPos};
|
||||
|
||||
/// An octahedron iterator, useful for iterating over blocks in a world.
|
||||
///
|
||||
/// ```
|
||||
/// # use azalea_core::BlockPos;
|
||||
/// # use azalea_core::position::BlockPos;
|
||||
/// # use azalea_world::iterators::BlockIterator;
|
||||
///
|
||||
/// let mut iter = BlockIterator::new(BlockPos::default(), 4);
|
||||
|
@ -81,7 +81,7 @@ impl Iterator for BlockIterator {
|
|||
/// `ChunkIterator` to sort by x+y+z (Manhattan) distance.
|
||||
///
|
||||
/// ```
|
||||
/// # use azalea_core::ChunkPos;
|
||||
/// # use azalea_core::position::ChunkPos;
|
||||
/// # use azalea_world::iterators::SquareChunkIterator;
|
||||
///
|
||||
/// let mut iter = SquareChunkIterator::new(ChunkPos::default(), 4);
|
||||
|
@ -118,7 +118,7 @@ impl SquareChunkIterator {
|
|||
/// Change the distance that this iterator won't go past.
|
||||
///
|
||||
/// ```
|
||||
/// # use azalea_core::ChunkPos;
|
||||
/// # use azalea_core::position::ChunkPos;
|
||||
/// # use azalea_world::iterators::SquareChunkIterator;
|
||||
///
|
||||
/// let mut iter = SquareChunkIterator::new(ChunkPos::default(), 2);
|
||||
|
@ -169,7 +169,7 @@ impl Iterator for SquareChunkIterator {
|
|||
/// A diagonal spiral iterator, useful for iterating over chunks in a world.
|
||||
///
|
||||
/// ```
|
||||
/// # use azalea_core::ChunkPos;
|
||||
/// # use azalea_core::position::ChunkPos;
|
||||
/// # use azalea_world::iterators::ChunkIterator;
|
||||
///
|
||||
/// let mut iter = ChunkIterator::new(ChunkPos::default(), 4);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{iterators::ChunkIterator, palette::Palette, ChunkStorage, PartialChunkStorage};
|
||||
use azalea_block::{BlockState, BlockStates, FluidState};
|
||||
use azalea_core::{BlockPos, ChunkPos};
|
||||
use azalea_core::position::{BlockPos, ChunkPos};
|
||||
use bevy_ecs::{component::Component, entity::Entity};
|
||||
use derive_more::{Deref, DerefMut};
|
||||
use nohash_hasher::IntMap;
|
||||
|
|
|
@ -10,7 +10,7 @@ use azalea::pathfinder::goals::BlockPosGoal;
|
|||
use azalea::{prelude::*, swarm::prelude::*, BlockPos, GameProfileComponent, WalkDirection};
|
||||
use azalea::{Account, Client, Event};
|
||||
use azalea_client::SprintDirection;
|
||||
use azalea_core::{ChunkBlockPos, ChunkPos, Vec3};
|
||||
use azalea_core::position::{ChunkBlockPos, ChunkPos, Vec3};
|
||||
use azalea_protocol::packets::game::ClientboundGamePacket;
|
||||
use azalea_world::heightmap::HeightmapKind;
|
||||
use azalea_world::{InstanceName, MinecraftEntityId};
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::ecs::{
|
|||
use azalea_client::interact::SwingArmEvent;
|
||||
use azalea_client::mining::Mining;
|
||||
use azalea_client::TickBroadcast;
|
||||
use azalea_core::{BlockPos, Vec3};
|
||||
use azalea_core::position::{BlockPos, Vec3};
|
||||
use azalea_entity::{
|
||||
clamp_look_direction, metadata::Player, EyeHeight, Jumping, LocalEntity, LookDirection,
|
||||
Position,
|
||||
|
|
|
@ -5,7 +5,7 @@ use azalea_client::{
|
|||
packet_handling::game::PacketEvent,
|
||||
Client,
|
||||
};
|
||||
use azalea_core::BlockPos;
|
||||
use azalea_core::position::BlockPos;
|
||||
use azalea_inventory::{operations::ClickOperation, ItemSlot, Menu};
|
||||
use azalea_protocol::packets::game::ClientboundGamePacket;
|
||||
use bevy_app::{App, Plugin, Update};
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue