aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_container_click.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/s_container_click.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/s_container_click.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/s_container_click.rs b/azalea-protocol/src/packets/game/s_container_click.rs
new file mode 100755
index 00000000..a6dee697
--- /dev/null
+++ b/azalea-protocol/src/packets/game/s_container_click.rs
@@ -0,0 +1,17 @@
+use std::collections::HashMap;
+
+use azalea_buf::AzBuf;
+use azalea_inventory::{operations::ClickType, ItemStack};
+use azalea_protocol_macros::ServerboundGamePacket;
+
+#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
+pub struct ServerboundContainerClick {
+ pub container_id: u8,
+ #[var]
+ pub state_id: u32,
+ pub slot_num: i16,
+ pub button_num: u8,
+ pub click_type: ClickType,
+ pub changed_slots: HashMap<u16, ItemStack>,
+ pub carried_item: ItemStack,
+}