Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
m
(13w49a)
Line 8: Line 8:
  
 
=== 13w48(a/b) ===
 
=== 13w48(a/b) ===
 +
No changes
 +
 +
=== 13w49a ===
 +
 +
* Changed Set Slot's ''Window ID'' type to byte
  
 
== Protocol Version ==
 
== Protocol Version ==
Line 17: Line 22:
 
|-
 
|-
 
| 13w48(a/b) || 4
 
| 13w48(a/b) || 4
 +
|-
 +
| 13w49a || 4
 +
|}
 +
 +
== Play ==
 +
 +
=== Clientbound ===
 +
==== Set Slot ====
 +
 +
Sent by the server when an item in a slot (in a window) is added/removed.
 +
 +
{| class="wikitable"
 +
! Packet ID !! Field Name !! Field Type !! Notes
 +
|-
 +
| rowspan="3" | 0x2F
 +
| Window ID || '''Byte'''
 +
| The window which is being updated. 0 for player inventory. Note that all known window types include the player inventory. This packet will only be sent for the currently opened window while the player is performing actions, even if it affects the player inventory. After the window is closed, a number of these packets are sent to update the player's inventory window (0).
 +
|-
 +
| Slot || Short || The slot that should be updated
 +
|-
 +
| Slot data || [[Slot_Data|Slot]] ||
 
|}
 
|}

Revision as of 17:29, 5 December 2013

This page documents the changes from the last stable Minecraft release (currently 1.7.2, protocol 4) to the current pre-release. Note that this page contains bleeding-edge information that may not be completely or correctly documented. He who wishes to commandeer the merging of this into Protocol when an update is made must be sure to respect any changes that may have occured to the respective packets there.

Protocol History

13w47(a/b/c/d/e)

No changes

13w48(a/b)

No changes

13w49a

  • Changed Set Slot's Window ID type to byte

Protocol Version

Version Protocol
13w47(a/b/c/d/e) 4
13w48(a/b) 4
13w49a 4

Play

Clientbound

Set Slot

Sent by the server when an item in a slot (in a window) is added/removed.

Packet ID Field Name Field Type Notes
0x2F Window ID Byte The window which is being updated. 0 for player inventory. Note that all known window types include the player inventory. This packet will only be sent for the currently opened window while the player is performing actions, even if it affects the player inventory. After the window is closed, a number of these packets are sent to update the player's inventory window (0).
Slot Short The slot that should be updated
Slot data Slot