aboutsummaryrefslogtreecommitdiff
path: root/azalea-client
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-17 20:46:16 -0500
committermat <github@matdoes.dev>2022-06-17 20:46:16 -0500
commitf993e79a7e6acc7aadd1e6cf9462d7a3e2c3ac3e (patch)
tree43968ba301274358a74399a5ed3d73f5204e7046 /azalea-client
parentfcdb6d31eeb93887caae104724b230196a0fc5bc (diff)
downloadazalea-drasl-f993e79a7e6acc7aadd1e6cf9462d7a3e2c3ac3e.tar.xz
Create azalea-entity
Diffstat (limited to 'azalea-client')
-rwxr-xr-xazalea-client/Cargo.toml1
-rw-r--r--azalea-client/src/entity.rs8
-rwxr-xr-xazalea-client/src/lib.rs2
-rw-r--r--azalea-client/src/player.rs2
4 files changed, 2 insertions, 11 deletions
diff --git a/azalea-client/Cargo.toml b/azalea-client/Cargo.toml
index 1156f8de..cc34f03a 100755
--- a/azalea-client/Cargo.toml
+++ b/azalea-client/Cargo.toml
@@ -9,6 +9,7 @@ version = "0.1.0"
azalea-auth = {path = "../azalea-auth"}
azalea-core = {path = "../azalea-core"}
azalea-crypto = {path = "../azalea-crypto"}
+azalea-entity = {path = "../azalea-entity"}
azalea-protocol = {path = "../azalea-protocol"}
azalea-world = {path = "../azalea-world"}
tokio = {version = "1.18.0", features = ["sync"]}
diff --git a/azalea-client/src/entity.rs b/azalea-client/src/entity.rs
deleted file mode 100644
index d91f556f..00000000
--- a/azalea-client/src/entity.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-use azalea_core::EntityPos;
-
-#[derive(Default, Debug)]
-pub struct Entity {
- /// The incremental numerical id of the entity.
- pub id: u32,
- pub pos: EntityPos,
-}
diff --git a/azalea-client/src/lib.rs b/azalea-client/src/lib.rs
index 5814687a..db935897 100755
--- a/azalea-client/src/lib.rs
+++ b/azalea-client/src/lib.rs
@@ -1,12 +1,10 @@
//! Significantly abstract azalea-protocol so it's actually useable for bots.
mod connect;
-mod entity;
pub mod ping;
mod player;
pub use connect::{Account, Client, Event};
-pub use entity::Entity;
pub use player::Player;
#[cfg(test)]
diff --git a/azalea-client/src/player.rs b/azalea-client/src/player.rs
index 04d34f6d..9a5ba8ab 100644
--- a/azalea-client/src/player.rs
+++ b/azalea-client/src/player.rs
@@ -1,4 +1,4 @@
-use crate::Entity;
+use azalea_entity::Entity;
#[derive(Default, Debug)]
pub struct Player {