add packet SClickContainer

This commit is contained in:
Edvin Bryntesson committed 2024-08-24 19:15:03 +02:00
1 parent 3428f03a0f
commit 507b521340
2 files changed
+18

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
mod s_chat_command; mod s_chat_command;
mod s_chat_message; mod s_chat_message;
mod s_click_container;
mod s_client_information; mod s_client_information;
mod s_close_container; mod s_close_container;
mod s_confirm_teleport; mod s_confirm_teleport;
@@ -0,0 +1,17 @@
use crate::slot::Slot;
use crate::VarInt;
use pumpkin_macros::packet;
use serde::Deserialize;
#[derive(Deserialize)]
#[packet(0x0E)]
pub struct SClickContainer {
window_id: u8,
state_id: VarInt,
slot: Slot,
button: i8,
mode: VarInt,
length_of_array: VarInt,
array_of_changed_slots: Vec<(i16, Slot)>,
carried_item: Slot,
}