aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-11-19 22:07:38 -0600
committerGitHub <noreply@github.com>2023-11-19 22:07:38 -0600
commit2c610826fc9f8e16897f52313faa8e0602d1dc3d (patch)
tree5aad79ecab3b68511a10ebd7eba07af0bd8a5905 /azalea-entity/src
parent84e036ce3752ecf57904b0f5aff1f33d43e95a32 (diff)
downloadazalea-drasl-2c610826fc9f8e16897f52313faa8e0602d1dc3d.tar.xz
Replace azalea-nbt with simdnbt (#111)
* delete azalea-nbt and replace with simdnbt * use simdnbt from crates.io * remove serde dependency on azalea-registry
Diffstat (limited to 'azalea-entity/src')
-rwxr-xr-xazalea-entity/src/data.rs2
-rw-r--r--azalea-entity/src/metadata.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/azalea-entity/src/data.rs b/azalea-entity/src/data.rs
index 54487ef1..83779b21 100755
--- a/azalea-entity/src/data.rs
+++ b/azalea-entity/src/data.rs
@@ -81,7 +81,7 @@ pub enum EntityDataValue {
BlockState(azalea_block::BlockState),
/// If this is air, that means it's absent,
OptionalBlockState(azalea_block::BlockState),
- CompoundTag(azalea_nbt::Nbt),
+ CompoundTag(simdnbt::owned::NbtCompound),
Particle(Particle),
VillagerData(VillagerData),
// 0 for absent; 1 + actual value otherwise. Used for entity IDs.
diff --git a/azalea-entity/src/metadata.rs b/azalea-entity/src/metadata.rs
index 39ba9527..006020d1 100644
--- a/azalea-entity/src/metadata.rs
+++ b/azalea-entity/src/metadata.rs
@@ -6054,9 +6054,9 @@ pub struct PlayerModeCustomisation(pub u8);
#[derive(Component, Deref, DerefMut, Clone)]
pub struct PlayerMainHand(pub u8);
#[derive(Component, Deref, DerefMut, Clone)]
-pub struct ShoulderLeft(pub azalea_nbt::Nbt);
+pub struct ShoulderLeft(pub simdnbt::owned::NbtCompound);
#[derive(Component, Deref, DerefMut, Clone)]
-pub struct ShoulderRight(pub azalea_nbt::Nbt);
+pub struct ShoulderRight(pub simdnbt::owned::NbtCompound);
#[derive(Component)]
pub struct Player;
impl Player {
@@ -6137,8 +6137,8 @@ impl Default for PlayerMetadataBundle {
score: Score(0),
player_mode_customisation: PlayerModeCustomisation(0),
player_main_hand: PlayerMainHand(Default::default()),
- shoulder_left: ShoulderLeft(azalea_nbt::Nbt::Compound(Default::default())),
- shoulder_right: ShoulderRight(azalea_nbt::Nbt::Compound(Default::default())),
+ shoulder_left: ShoulderLeft(simdnbt::owned::NbtCompound::default()),
+ shoulder_right: ShoulderRight(simdnbt::owned::NbtCompound::default()),
}
}
}