Commit Graph

52 Commits

Author SHA1 Message Date
91e7ffa464 Fix #95 2021-03-14 13:35:09 +08:00
951bedbb13 Fix tests, changes pk.NBT api 2021-02-28 15:14:52 +08:00
918fffed1f Fix bug: Write pk.Boolean encode error 2021-02-27 20:19:32 +08:00
21207830c0 Fix over-read bug of go-mc/net packet 2021-02-27 01:15:44 +08:00
3da9321f59 Refactoring package go-mc/bot 2021-02-27 01:06:07 +08:00
f8b3501b60 Fix other code for compatible with new go-mc/net packet 2021-02-25 20:22:06 +08:00
27a30efe7b Change conn.ReadPacket for reuse of the buffer 2021-02-25 14:24:28 +08:00
a0ec60eca2 Implement PacketBuilder. close #46 2021-02-25 12:43:46 +08:00
9b6f640843 update to 1.16 and removes usage of "io/ioutil" 2021-02-25 12:43:39 +08:00
ea0e0d1cae Regenerate files, moves packet id from data package 2021-02-18 21:29:16 +08:00
bc9cd93066 Fix some warnings and typos 2021-02-18 14:07:30 +08:00
67806abcdb fix #88 2020-11-30 14:29:15 +08:00
Tom
2bdea5a0f9 Implement TransactionConfirmation event + packet 2020-09-27 21:44:24 -07:00
Tom
670799df8d Start implementing boilerplate for manipulating inventory 2020-09-26 18:05:40 -07:00
Tom
a46acaa064 Track and update tile entities 2020-09-20 17:11:18 -07:00
Tom
7d122e2f8b Basic entity tracking 2020-09-19 15:59:03 -07:00
Tom
0a6e72a046 Add entity information 2020-09-17 13:05:37 -07:00
Tom
8ecf08fa50 Implement packet decoding for entities 2020-09-17 00:13:08 -07:00
Tom
70bb24a7fb Major update to implement basic collision 2020-09-16 20:16:47 -07:00
Tom
d3bb141fcd Move decode of complex packets into their own package 2020-09-12 21:13:37 -07:00
Tom
358fb7b659 Implement generator and type for packet IDs 2020-09-12 13:38:45 -07:00
e8f6c6fa9b Improved rcon testing 2020-07-14 12:59:11 +08:00
2159d1c959 Adds Close Function 2020-07-12 20:33:42 -05:00
61f1fc31b6 change packet id from Byte to VarInt. #59 2020-06-02 14:33:21 +08:00
c87bdc91be Add unit test for invalid long VarInt 2020-04-26 13:06:42 +08:00
e6ca182ba1 Fixed VarInt and VarLong max size
Before VarInt could have had a size of 7 byte without generating errors (max should be 5).
>= 5 is because we start from 0 and i=5 is already in error.
For example if byte of VarInt are [255 255 255 255 255 255 1], at penultimate iteration, i will be 5 (start at 0) so there aren't errors and at the last the break bypass the sec&0x80 check.
Same for VarLong.
2020-04-25 18:06:37 +02:00
72c389c86f Support VarLong encode/decode 2020-01-29 13:57:57 +08:00
4370b6c3cd 修复RCON库过于信任包Size字段的问题 2020-01-16 12:57:01 +08:00
e8bb060cc4 更新1.15协议部分 2019-12-11 11:07:47 +08:00
9576aa2823 may fix #28 2019-10-20 14:19:38 +08:00
d85d31da46 you can dial connection with timeout, and the PingAndList at /bot also. 2019-08-27 02:06:59 +08:00
e63d68d0d7 you can dial connection by your self, so you can set timeout now. 2019-08-27 01:29:11 +08:00
5e38ea7d8d implement RCON client and server 2019-07-30 15:31:23 +08:00
fa15141870 rcon connection 2019-07-30 01:33:18 +08:00
9cfdbfc6b7 we can Encode and Decode the UUID now 2019-07-28 19:22:14 +08:00
9a960ee868 Use google's UUID lib 2019-07-28 19:14:51 +08:00
6c4924af96 修正ReadWriter接口名 2019-07-22 13:03:26 +08:00
c78d8369eb add Reader and Writer interface of go-mc/net 2019-07-22 12:51:54 +08:00
2809be4542 修正代码中的若干拼写错误 2019-07-16 23:32:54 +08:00
a7858a2459 修正代码中的若干拼写错误 2019-07-16 23:28:02 +08:00
b8e2b66a35 让ByteArray的Encode不使用指针 2019-06-03 13:23:28 +08:00
4a0dc34854 add support of the byte array with varint len. 2019-06-03 13:01:15 +08:00
837bb0b213 try read ChunkData 2019-05-21 00:11:27 +08:00
edc99fc773 一个替换登入账号的代理服务器 2019-05-20 00:45:56 +08:00
bb7fffbce6 recive Chunk data 2019-05-19 21:27:07 +08:00
e088636fbc fix some misspell 2019-05-19 11:55:58 +08:00
637d5e35a3 remove PositionPackTest 2019-05-19 11:36:54 +08:00
7e8118e21f PluginMessage event 2019-05-19 11:32:31 +08:00
94fb6502db 添加了一些注释和例子 2019-05-17 14:10:52 +08:00
71e4d24465 fix the panic when net.Conn.ReadPacket error. 2019-05-05 00:44:06 +08:00