add packet SClickContainer
This commit is contained in:
2 files changed
+18
No files matched your search
@@ -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,
|
||||||
|
}
|
||||||
Reference in new issue
Block a user