diff options
| author | mat <github@matdoes.dev> | 2022-10-02 14:52:48 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-02 14:52:48 -0500 |
| commit | 37f9f1c6feda676be30bef31291eaed2a5fc82ce (patch) | |
| tree | 9e61a94766d0477eeb861165fa721f8b42bb9a85 /azalea-world | |
| parent | c9b4dccd7eaeed68ce96cf5167916417d0baa6a7 (diff) | |
| download | azalea-drasl-37f9f1c6feda676be30bef31291eaed2a5fc82ce.tar.xz | |
add jumping
Diffstat (limited to 'azalea-world')
| -rw-r--r-- | azalea-world/src/entity/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea-world/src/entity/mod.rs b/azalea-world/src/entity/mod.rs index b9c273f0..37474d1d 100644 --- a/azalea-world/src/entity/mod.rs +++ b/azalea-world/src/entity/mod.rs @@ -260,6 +260,10 @@ pub struct EntityData { pub dimensions: EntityDimensions, /// The bounding box of the entity. This is more than just width and height, unlike dimensions. pub bounding_box: AABB, + + /// Whether the entity will try to jump every tick + /// (equivalent to the space key being held down in vanilla). + pub jumping: bool, } impl EntityData { @@ -291,6 +295,8 @@ impl EntityData { // TODO: have this be based on the entity type bounding_box: dimensions.make_bounding_box(&pos), dimensions, + + jumping: false, } } |
