forked from fogleman/Minecraft
-
Notifications
You must be signed in to change notification settings - Fork 33
Packet Type
Jim Xue edited this page May 5, 2013
·
2 revisions
A list of packet types
No. | Name | Size(bytes) | Argument Format | Argument(client-side) | Result Format | Result(server-side) |
---|---|---|---|---|---|---|
1 | Sector Request | 12 | iii | coordinates of sector | coordinates of sector + sector data + exposed sector | |
2 | Empty Sector | 12 | None | iii | coordinates of sector | |
3 | Place Block | 14 | iiiBB | block position(x, y, z) + block id(main, sub) | iiiBB | block position(x, y, z) + block id(main, sub) |
4 | Dig Block | 12 | iii | block position(x, y, z) | iii | block position(x, y, z) |
5 | Chat | i+str | length + text | None | ||
6 | Player Inventory | 160 | player's inventory | None | ||
7 | Unused | |||||
8 | Player Position | 36/38 | fffddd | player's position and movement | Hfffddd | id + player's position and movement |
9 | Player Jump | 0 | None | None | ||
10 | Update Tile Entity | server-side only | iii+string | position of the block to be updated + tile entity information | ||
255 | Login | length + username | player list + first sector + spawn position + inventory |