mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
18 lines
491 B
Rust
Executable file
18 lines
491 B
Rust
Executable file
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 {
|
|
#[var]
|
|
pub container_id: i32,
|
|
#[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,
|
|
}
|