chunkedge_protocol/packets/play/
container_set_slot_s2c.rs

1use std::borrow::Cow;
2
3use chunkedge_binary::{Decode, Encode, VarInt};
4use chunkedge_item::ItemStack;
5
6use crate::Packet;
7
8#[derive(Clone, Debug, Encode, Decode, Packet)]
9pub struct ContainerSetSlotS2c<'a> {
10    pub window_id: VarInt,
11    pub state_id: VarInt,
12    pub slot_idx: i16,
13    pub slot_data: Cow<'a, ItemStack>,
14}