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:
parent
e8deda5d2e
commit
8bc4e8bf3b
3 changed files with 18 additions and 0 deletions
3
azalea-entity/README.md
Normal file
3
azalea-entity/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Azalea Entity
|
||||
|
||||
An implementation of Minecraft entities and entity physics.
|
|
@ -1,4 +1,5 @@
|
|||
mod data;
|
||||
mod physics;
|
||||
|
||||
use azalea_core::{EntityPos, PositionDelta};
|
||||
pub use data::*;
|
||||
|
|
14
azalea-entity/src/physics/mod.rs
Normal file
14
azalea-entity/src/physics/mod.rs
Normal 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) {}
|
||||
}
|
Loading…
Add table
Reference in a new issue