From ef357fdf3667f3ded03203fc0f7cdec48a01ad8f Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:17:39 -0500 Subject: 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 --- azalea-core/src/position.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'azalea-core/src/position.rs') 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)] -- cgit v1.2.3