azalea_protocol/packets/game/
c_container_set_slot.rs

1use azalea_buf::AzBuf;
2use azalea_inventory::ItemStack;
3use azalea_protocol_macros::ClientboundGamePacket;
4
5#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundGamePacket)]
6pub struct ClientboundContainerSetSlot {
7    #[var]
8    pub container_id: i32,
9    /// An identifier used by the server to track client inventory desyncs.
10    #[var]
11    pub state_id: u32,
12    /// The slot index.
13    ///
14    /// See <https://minecraft.wiki/w/Java_Edition_protocol/Inventory>.
15    pub slot: u16,
16    pub item_stack: ItemStack,
17}