11-08-2012, 07:09 PM
The slots should be numbered the same as in the inventory window that is used by the server protocol:
0 - crafting result
1 .. 4 - crafting grid
5 .. 8 - armor
9 .. 35 - inner inventory
36 .. 44 - hotbar
http://wiki.vg/Inventory#Inventory
Naturally, setting slots 0 through 4 in the inventory doesn't do anything, they're there for historical reasons only - the early code copied the inventory 1:1 into the window packet.
0 - crafting result
1 .. 4 - crafting grid
5 .. 8 - armor
9 .. 35 - inner inventory
36 .. 44 - hotbar
http://wiki.vg/Inventory#Inventory
Naturally, setting slots 0 through 4 in the inventory doesn't do anything, they're there for historical reasons only - the early code copied the inventory 1:1 into the window packet.