Pumpkin/pumpkin-protocol/src/bedrock/client/inventory_content.rs
Alexander Medvedev fb13004b47 fix: apply clippy lints to workspace
also add contributors to /pumpkin command

Co-Authored-By: Fyor <90567841+fyordev@users.noreply.github.com>
Co-Authored-By: MartV0 <34748938+martv0@users.noreply.github.com>
Co-Authored-By: FabseGP <fabsegp@fabseman.space>
2026-01-28 00:52:47 +01:00

19 lines
543 B
Rust

use pumpkin_macros::packet;
use crate::{
bedrock::network_item::NetworkItemStackDescriptor, codec::var_uint::VarUInt,
serial::PacketWrite,
};
#[derive(PacketWrite)]
#[packet(49)]
pub struct CInventoryContent {
// https://mojang.github.io/bedrock-protocol-docs/html/InventoryContentPacket.html
pub inventory_id: VarUInt,
pub slots: Vec<NetworkItemStackDescriptor>,
pub container_name: u8,
pub dynamic_id: Option<u32>,
/// Use `NetworkItemDescriptor` if none
pub storage_item: NetworkItemStackDescriptor,
}