Skip to content

Instantly share code, notes, and snippets.

@eddyb
Created September 19, 2011 05:21
Show Gist options
  • Save eddyb/1226013 to your computer and use it in GitHub Desktop.
Save eddyb/1226013 to your computer and use it in GitHub Desktop.
0x00: [int('id')],
0x01: [int('protoVersion'), str16('username'), long(/*seed*/), int(/*mode*/), byte(/*world*/), byte(), ubyte(/*height*/), ubyte(/*maxPlayers*/)],
0x02: [str16('username')],
0x03: [str16('message')],
0x05: [int('EID'), short('slot'), short('itemID'), short('dataValue')],
0x07: [int('playerEID'), int('targetEID'), bool('leftClick')],
0x09: [byte('world'), byte(), byte('mode'), short('height'), long('seed')],
0x0a: [bool('onGround')],
0x0b: [double('x'), double('y'), double('stance'), double('z'), bool('onGround')],
0x0c: [float('yaw'), float('pitch'), bool('onGround')],
0x0d: [double('x'), double('y'), double('stance'), double('z'), float('yaw'), float('pitch'), bool('onGround')],
0x0e: [byte('status'), int('x'), byte('y'), int('z'), byte('face')],
0x0f: [int('x'), byte('y'), int('z'), byte('direction'), short('itemID'), byte('count'), short('dataValue')],
0x10: [short('slot')],
0x12: [int('EID'), byte('animation')],
0x13: [int('EID'), byte('action')],
0x15: [int('EID'), short('item'), byte('count'), short('dataValue'), int('x'), int('y'), int('z'), byte('yaw'), byte('pitch'), byte('roll')],
0x1c: [int('EID'), short('vx'), short('vy'), short('vz')],
0x65: [byte('windowID')],
0x66: [byte('windowID'), short('slot'), bool('rightClick'), short('actionID'), bool('shift'), short('itemID'), byte('itemCount'), short('itemDataValue')],
0x6a: [byte('windowID'), short('actionID'), bool('accepted')],
0x82: [int('x'), short('y'), int('z'), str16('line1'), str16('line2'), str16('line3'), str16('line4')],
0xfe: [],
0xff: [str16('message')],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment