Window Items

Packet ID Direction
0x68 Clientbound

Clientbound

Sent to the client to show the contents of inventories

Field Type Description
Window ID Byte The incremental ID of the window. Ranges from 0 to 99
Payload Size Short The number of slots in the inventory
Payload * The inventory data

The Payload is a list which describes the items in the sent inventory.

Field Type Description
Id Short The id of the item
Count Byte The amount of the item (only added if Id > -1)
Damage Short The damage value of the item (only added if Id > -1)

Example Packet

Clientbound

Field Value
Window ID 0
Payload Size 45

Repeat the following 45 Times

Field Value
Id 17
Count 42
Damage 1

This would show up as an inventory full of Birch Logs.