diff --git a/azalea-entity/README.md b/azalea-entity/README.md new file mode 100644 index 00000000..f805c0d2 --- /dev/null +++ b/azalea-entity/README.md @@ -0,0 +1,3 @@ +# Azalea Entity + +An implementation of Minecraft entities and entity physics. diff --git a/azalea-entity/src/lib.rs b/azalea-entity/src/lib.rs index 9436d753..18bb8b2e 100644 --- a/azalea-entity/src/lib.rs +++ b/azalea-entity/src/lib.rs @@ -1,4 +1,5 @@ mod data; +mod physics; use azalea_core::{EntityPos, PositionDelta}; pub use data::*; diff --git a/azalea-entity/src/physics/mod.rs b/azalea-entity/src/physics/mod.rs new file mode 100644 index 00000000..473adbae --- /dev/null +++ b/azalea-entity/src/physics/mod.rs @@ -0,0 +1,14 @@ +use crate::Entity; +use azalea_core::PositionDelta; + +pub enum MoverType { + Own, + Player, + Piston, + ShulkerBox, + Shulker, +} + +impl Entity { + pub fn move_entity(&mut self, mover_type: &MoverType, movement: &PositionDelta) {} +}