1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

Put physics module in azalea-entity

This commit is contained in:
mat 2022-06-25 19:38:27 -05:00
parent e8deda5d2e
commit 8bc4e8bf3b
3 changed files with 18 additions and 0 deletions

3
azalea-entity/README.md Normal file
View file

@ -0,0 +1,3 @@
# Azalea Entity
An implementation of Minecraft entities and entity physics.

View file

@ -1,4 +1,5 @@
mod data;
mod physics;
use azalea_core::{EntityPos, PositionDelta};
pub use data::*;

View file

@ -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) {}
}