aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_container_click.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/s_container_click.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/s_container_click.rs')
-rw-r--r--azalea-protocol/src/packets/game/s_container_click.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea-protocol/src/packets/game/s_container_click.rs b/azalea-protocol/src/packets/game/s_container_click.rs
index ef2e832d..bfce320e 100644
--- a/azalea-protocol/src/packets/game/s_container_click.rs
+++ b/azalea-protocol/src/packets/game/s_container_click.rs
@@ -2,6 +2,7 @@ use azalea_buf::AzBuf;
use azalea_core::{checksum::Checksum, registry_holder::RegistryHolder};
use azalea_inventory::{ItemStack, operations::ClickType};
use azalea_protocol_macros::ServerboundGamePacket;
+use azalea_registry::builtin::{DataComponentKind, ItemKind};
use indexmap::IndexMap;
#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundGamePacket)]
@@ -24,7 +25,7 @@ pub struct HashedStack(pub Option<HashedActualItem>);
#[derive(Clone, Debug, AzBuf, PartialEq)]
pub struct HashedActualItem {
- pub kind: azalea_registry::Item,
+ pub kind: ItemKind,
#[var]
pub count: i32,
pub components: HashedPatchMap,
@@ -33,9 +34,9 @@ pub struct HashedActualItem {
#[derive(Clone, Debug, AzBuf, PartialEq)]
pub struct HashedPatchMap {
#[limit(256)]
- pub added_components: Vec<(azalea_registry::DataComponentKind, Checksum)>,
+ pub added_components: Vec<(DataComponentKind, Checksum)>,
#[limit(256)]
- pub removed_components: Vec<azalea_registry::DataComponentKind>,
+ pub removed_components: Vec<DataComponentKind>,
}
impl HashedStack {