diff options
Diffstat (limited to 'azalea-entity/src')
| -rw-r--r-- | azalea-entity/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/azalea-entity/src/lib.rs b/azalea-entity/src/lib.rs index db42a0ba..fc312f79 100644 --- a/azalea-entity/src/lib.rs +++ b/azalea-entity/src/lib.rs @@ -257,6 +257,11 @@ pub struct Dead; /// an entity, and when raycasting from the entity. #[derive(Component, Clone, Copy, Debug, PartialEq, Deref, DerefMut)] pub struct EyeHeight(f32); +impl EyeHeight { + pub fn new(height: f32) -> Self { + Self(height) + } +} impl From<EyeHeight> for f32 { fn from(value: EyeHeight) -> Self { value.0 |
