← Packet index

Packet 49

InventoryContentPacket

This is used for updating an entire container. Example uses include: player respawned, replace items command, 3rd party content calls sendInventory(), block picking.

Packet datagramWire order
HeaderID 49varuint
0Container Idvaruint32 · variable (up to 5 bytes)
1Slotsarray<NetworkItemStackDescriptor> · variable
2Full Container NameFullContainerName · variable
3Storage ItemNetworkItemStackDescriptor · variable

Serialized fields

4 top-level fields
  1. 0Container IdThe container IDCompressionvaruint32
  2. 1SlotsThe item stacks for each inventory slotNetworkItemStackDescriptoras array<NetworkItemStackDescriptor>
  3. 2Full Container NameUsed to reference a specific container within a given screen container contextFullContainerName
    1. 0Container NameEnum-as-ValueContainerEnumNameas uint8
      1. 0AnvilInputContainer
      2. 1AnvilMaterialContainer
      3. 2AnvilResultPreviewContainer
      4. 3SmithingTableInputContainer
      5. 4SmithingTableMaterialContainer
      6. 5SmithingTableResultPreviewContainer
      7. 6ArmorContainer
      8. 7LevelEntityContainer
      9. 8BeaconPaymentContainer
      10. 9BrewingStandInputContainer
      11. 10BrewingStandResultContainer
      12. 11BrewingStandFuelContainer
      13. 12CombinedHotbarAndInventoryContainer
      14. 13CraftingInputContainer
      15. 14CraftingOutputPreviewContainer
      16. 15RecipeConstructionContainer
      17. 16RecipeNatureContainer
      18. 17RecipeItemsContainer
      19. 64RecipeFoodContainer
      20. 65RecipeBlocksContainer
      21. 66RecipeFurnaceItemsContainer
      22. 18RecipeSearchContainer
      23. 19RecipeSearchBarContainer
      24. 20RecipeEquipmentContainer
      25. 21RecipeBookContainer
      26. 22EnchantingInputContainer
      27. 23EnchantingMaterialContainer
      28. 24FurnaceFuelContainer
      29. 25FurnaceIngredientContainer
      30. 26FurnaceResultContainer
      31. 27HorseEquipContainer
      32. 28HotbarContainer
      33. 29InventoryContainer
      34. 30ShulkerBoxContainer
      35. 31TradeIngredient1Container
      36. 32TradeIngredient2Container
      37. 33TradeResultPreviewContainer
      38. 34OffhandContainer
      39. 35CompoundCreatorInput
      40. 36CompoundCreatorOutputPreview
      41. 37ElementConstructorOutputPreview
      42. 38MaterialReducerInput
      43. 39MaterialReducerOutput
      44. 40LabTableInput
      45. 41LoomInputContainer
      46. 42LoomDyeContainer
      47. 43LoomMaterialContainer
      48. 44LoomResultPreviewContainer
      49. 45BlastFurnaceIngredientContainer
      50. 46SmokerIngredientContainer
      51. 47Trade2Ingredient1Container
      52. 48Trade2Ingredient2Container
      53. 49Trade2ResultPreviewContainer
      54. 50GrindstoneInputContainer
      55. 51GrindstoneAdditionalContainer
      56. 52GrindstoneResultPreviewContainer
      57. 53StonecutterInputContainer
      58. 54StonecutterResultPreviewContainer
      59. 55CartographyInputContainer
      60. 56CartographyAdditionalContainer
      61. 57CartographyResultPreviewContainer
      62. 58BarrelContainer
      63. 59CursorContainer
      64. 60CreatedOutputContainer
      65. 61SmithingTableTemplateContainer
      66. 62CrafterLevelEntityContainer
      67. 63DynamicContainer
    2. 1Dynamic IDoptionaluint32
  4. 3Storage ItemOptional storage item containing the contents to set. Only the item type is relevant, not any stack information.NetworkItemStackDescriptor

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.