aboutsummaryrefslogtreecommitdiff
path: root/azalea-inventory/src/components.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-inventory/src/components.rs')
-rw-r--r--azalea-inventory/src/components.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs
index ad15a461..b820afc9 100644
--- a/azalea-inventory/src/components.rs
+++ b/azalea-inventory/src/components.rs
@@ -731,9 +731,11 @@ pub struct DebugStickState {
}
#[derive(Clone, PartialEq, AzBuf, Debug, Serialize)]
-#[serde(transparent)]
pub struct EntityData {
- pub entity: NbtCompound,
+ #[serde(rename = "id")]
+ pub kind: EntityKind,
+ #[serde(flatten)]
+ pub data: NbtCompound,
}
#[derive(Clone, PartialEq, AzBuf, Debug, Serialize)]
@@ -743,9 +745,11 @@ pub struct BucketEntityData {
}
#[derive(Clone, PartialEq, AzBuf, Debug, Serialize)]
-#[serde(transparent)]
pub struct BlockEntityData {
- pub entity: NbtCompound,
+ #[serde(rename = "id")]
+ pub kind: EntityKind,
+ #[serde(flatten)]
+ pub data: NbtCompound,
}
#[derive(Clone, PartialEq, AzBuf, Debug, Serialize)]