Commit graph

73 commits

Author SHA1 Message Date
Andrew Kelley
b335f201a8 fix objectData writer 2013-02-03 14:32:14 -05:00
Robin Lambertz
fdc01db825 Pass the original error around, and emit an error event on the client 2013-01-29 17:39:33 +00:00
Robin Lambertz
997071ef41 Changed if(typeof var === undefined) to if(var). Made errors error objects. 2013-01-29 08:53:23 +00:00
Robin Lambertz
529355782e Added errors in case of wrong MetaData or wrong Chunk Data 2013-01-29 01:05:33 +00:00
Robin Lambertz
5b67cec4e0 ups. Fixed a syntax error. 2013-01-29 00:48:01 +00:00
Robin Lambertz
eaa895120a Original skeleton changes. 2013-01-29 00:44:00 +00:00
Andrew Kelley
804397928c y values when only 1 byte are always unsigned 2013-01-22 09:01:29 -05:00
Andrew Kelley
75c52bdf00 0x0e: face is an unsigned byte 2013-01-19 17:45:42 -05:00
Andrew Kelley
dbb0a4ccbe add additional assertion 2013-01-12 05:17:17 -05:00
Andrew Kelley
5a85aa454f fix incorrectly swapped stance and y on 0x0d
add test that would have caught the bug
2013-01-10 20:34:56 -05:00
Andrew Kelley
0aa52864df simplify and fix entityMetadata parsing and serializing 2013-01-08 02:44:17 -05:00
Andrew Kelley
c03ac963d9 all writers finished and tested. closes #15 2013-01-08 01:53:30 -05:00
Andrew Kelley
817fb9b51e add writers for most data types 2013-01-08 00:50:43 -05:00
Andrew Kelley
10cb3e0100 test all packets 2013-01-07 23:36:14 -05:00
Andrew Kelley
5df31e4d88 refactor data types 2013-01-07 22:20:40 -05:00
Andrew Kelley
8a6d4bc725 add ushort writer 2013-01-07 22:14:14 -05:00
Andrew Kelley
a50bf7926b 0x38: remove chunkColumnCount. Use meta.length 2013-01-05 23:02:47 -05:00
Andrew Kelley
08f71f11dc add chunkCount to 0x38
changed some more things for more API consistency

 * 0x33: compressedData -> compressedChunkData
 * 0x38: meta.chunkX -> meta.x
 * 0x38: meta.chunkZ -> meta.z
 * 0x38: meta.primaryBitMap -> meta.bitMap
 * 0x38: add chunkCount
2013-01-05 16:51:42 -05:00
Andrew Kelley
5f769caebc minor API update
* move constants.STRING_MAX_LENGTH -> protocol.STRING_MAX_LENGTH
 * expose protocol.version
 * expose protocol.minecraftVersion
 * expose protocol.sessionVerson
 * expose protocol.parsePacket
 * expose protocol.createPacketBuffer
2013-01-05 05:17:27 -05:00
Andrew Kelley
150c89cc6d passing test: pinging a real minecraft server 2013-01-04 21:42:31 -05:00
Andrew Kelley
8096a08afd avoid dependency on iconv. makes it easier to use on windows. see #12 2013-01-04 19:04:06 -05:00
Andrew Kelley
3a8bfaf8e3 refactor + createServer support 2013-01-04 01:45:57 -05:00
Andrew Kelley
d38dad2d56 move packets to protocol, refactor 2013-01-03 23:14:19 -05:00