diff options
| author | mat <git@matdoes.dev> | 2024-11-28 03:17:58 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-11-28 03:17:58 +0000 |
| commit | c36201cc894bcc99a06358eea31d210800980dae (patch) | |
| tree | 03cf79c6e8ee6df5e3a1c198e218bc9de7c6f119 /azalea-core/src/position.rs | |
| parent | 08958c2278b15ebeac8a964f392ebb792e479b61 (diff) | |
| download | azalea-drasl-c36201cc894bcc99a06358eea31d210800980dae.tar.xz | |
change DataComponentPatch::get to take in a generic (and add get_kind, has, and has_kind)
Diffstat (limited to 'azalea-core/src/position.rs')
| -rwxr-xr-x | azalea-core/src/position.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs index c280a85a..ccc81649 100755 --- a/azalea-core/src/position.rs +++ b/azalea-core/src/position.rs @@ -11,7 +11,6 @@ use std::{ }; use azalea_buf::{AzBuf, AzaleaRead, AzaleaWrite, BufReadError}; -use serde::{Deserialize, Serialize}; use crate::resource_location::ResourceLocation; @@ -213,7 +212,7 @@ macro_rules! vec3_impl { /// Used to represent an exact position in the world where an entity could be. /// For blocks, [`BlockPos`] is used instead. #[derive(Clone, Copy, Debug, Default, PartialEq, AzBuf)] -#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] +#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] pub struct Vec3 { pub x: f64, pub y: f64, @@ -238,7 +237,7 @@ impl Vec3 { /// The coordinates of a block in the world. For entities (if the coordinate /// with decimals), use [`Vec3`] instead. #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)] -#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] +#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] pub struct BlockPos { pub x: i32, pub y: i32, |
