diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-03-25 11:17:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 11:17:39 -0500 |
| commit | ef357fdf3667f3ded03203fc0f7cdec48a01ad8f (patch) | |
| tree | 6e7429c62a22fec1988278f63554c93bdd905a5d /azalea-core/src | |
| parent | 8af265e48bf9f3d5263c074d034770e4216bb3f3 (diff) | |
| download | azalea-drasl-ef357fdf3667f3ded03203fc0f7cdec48a01ad8f.tar.xz | |
1.21.5 (#198)
* 25w02a
* move item_components codegen to a different module
* remove outdated test
* 25w03a
* start updating to 24w09b
* 1.21.5-pre2
* fix broken packets
* 1.21.5-rc2
* merge main
* delete unused acket_handling
* 1.21.5
Diffstat (limited to 'azalea-core/src')
| -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)] |
