diff options
Diffstat (limited to 'azalea-core/src/position.rs')
| -rwxr-xr-x | azalea-core/src/position.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs index 2dea1471..e82e5e4a 100755 --- a/azalea-core/src/position.rs +++ b/azalea-core/src/position.rs @@ -417,6 +417,18 @@ impl BlockPos { } } +/// Similar to [`BlockPos`] but it's serialized as 3 varints instead of one +/// 64-bit integer, so it can represent a bigger range of numbers. +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash, AzBuf)] +pub struct Vec3i { + #[var] + pub x: i32, + #[var] + pub y: i32, + #[var] + pub z: i32, +} + /// Chunk coordinates are used to represent where a chunk is in the world. You /// can convert the x and z to block coordinates by multiplying them by 16. #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] |
