← Back to Index

InventoryContentPacket (49)

This is used for updating an entire container. Example uses include: player respawned, replace items command, 3rd party content calls sendInventory(), block picking.
Field Name Type Field Index Description
Container Id (Required) varuint32 0 The container ID
Slots (Required) array<NetworkItemStackDescriptor> 1 The item stacks for each inventory slot
Full Container Name (Required) FullContainerName 2 Used to reference a specific container within a given screen container context

FullContainerName

Field Name Type Field Index Description
Container Name (Required) uint8 0
Enum Values:
Index Value
0 AnvilInputContainer
1 AnvilMaterialContainer
2 AnvilResultPreviewContainer
3 SmithingTableInputContainer
4 SmithingTableMaterialContainer
5 SmithingTableResultPreviewContainer
6 ArmorContainer
7 LevelEntityContainer
8 BeaconPaymentContainer
9 BrewingStandInputContainer
10 BrewingStandResultContainer
11 BrewingStandFuelContainer
12 CombinedHotbarAndInventoryContainer
13 CraftingInputContainer
14 CraftingOutputPreviewContainer
15 RecipeConstructionContainer
16 RecipeNatureContainer
17 RecipeItemsContainer
18 RecipeFoodContainer
19 RecipeBlocksContainer
20 RecipeFurnaceItemsContainer
21 RecipeSearchContainer
22 RecipeSearchBarContainer
23 RecipeEquipmentContainer
24 RecipeBookContainer
25 EnchantingInputContainer
26 EnchantingMaterialContainer
27 FurnaceFuelContainer
28 FurnaceIngredientContainer
29 FurnaceResultContainer
30 HorseEquipContainer
31 HotbarContainer
32 InventoryContainer
33 ShulkerBoxContainer
34 TradeIngredient1Container
35 TradeIngredient2Container
36 TradeResultPreviewContainer
37 OffhandContainer
38 CompoundCreatorInput
39 CompoundCreatorOutputPreview
40 ElementConstructorOutputPreview
41 MaterialReducerInput
42 MaterialReducerOutput
43 LabTableInput
44 LoomInputContainer
45 LoomDyeContainer
46 LoomMaterialContainer
47 LoomResultPreviewContainer
48 BlastFurnaceIngredientContainer
49 SmokerIngredientContainer
50 Trade2Ingredient1Container
51 Trade2Ingredient2Container
52 Trade2ResultPreviewContainer
53 GrindstoneInputContainer
54 GrindstoneAdditionalContainer
55 GrindstoneResultPreviewContainer
56 StonecutterInputContainer
57 StonecutterResultPreviewContainer
58 CartographyInputContainer
59 CartographyAdditionalContainer
60 CartographyResultPreviewContainer
61 BarrelContainer
62 CursorContainer
63 CreatedOutputContainer
64 SmithingTableTemplateContainer
65 CrafterLevelEntityContainer
66 DynamicContainer
Dynamic ID (Required) uint32 1
Storage Item (Required) NetworkItemStackDescriptor 3 Optional storage item containing the contents to set. Only the item type is relevant, not any stack information.