aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_add_entity.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2025-12-12 00:56:02 -0600
committerGitHub <noreply@github.com>2025-12-12 00:56:02 -0600
commitf9c25665c203d6377ace62f1e95381d037d8fd9e (patch)
tree8b4131d20fe661d3cc1175ec27f801fe61df41ea /azalea-protocol/src/packets/game/c_add_entity.rs
parent82ad975242292d5875780b4398b62637674bf50a (diff)
downloadazalea-drasl-f9c25665c203d6377ace62f1e95381d037d8fd9e.tar.xz
Refactor azalea-registry (#294)
* move registries in azalea-registry into separate modules * rename Item and Block to ItemKind and BlockKind * remove 'extra' registries from azalea-registry * hide deprecated items from docs * use DamageKindKey instead of Identifier when parsing registries * store tag entries as a Vec instead of a HashSet * sort tag values by protocol id * update changelog
Diffstat (limited to 'azalea-protocol/src/packets/game/c_add_entity.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_add_entity.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_add_entity.rs b/azalea-protocol/src/packets/game/c_add_entity.rs
index fbd2cb8a..e7b46750 100644
--- a/azalea-protocol/src/packets/game/c_add_entity.rs
+++ b/azalea-protocol/src/packets/game/c_add_entity.rs
@@ -1,7 +1,8 @@
use azalea_buf::AzBuf;
-use azalea_core::{delta::LpVec3, identifier::Identifier, position::Vec3};
+use azalea_core::{delta::LpVec3, position::Vec3};
use azalea_entity::{EntityBundle, metadata::apply_default_metadata};
use azalea_protocol_macros::ClientboundGamePacket;
+use azalea_registry::{builtin::EntityKind, identifier::Identifier};
use azalea_world::MinecraftEntityId;
use uuid::Uuid;
@@ -11,7 +12,7 @@ pub struct ClientboundAddEntity {
#[var]
pub id: MinecraftEntityId,
pub uuid: Uuid,
- pub entity_type: azalea_registry::EntityKind,
+ pub entity_type: EntityKind,
pub position: Vec3,
pub movement: LpVec3,
pub x_rot: i8,