Commit Graph

39 Commits

Author SHA1 Message Date
260805c0b1 Fix bug: ReadByte return EOF when read success 2021-02-27 20:18:41 +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
e864580903 Add test of over-read 2021-02-27 01:02:33 +08:00
9b6f640843 update to 1.16 and removes usage of "io/ioutil" 2021-02-25 12:43:39 +08:00
bc9cd93066 Fix some warnings and typos 2021-02-18 14:07:30 +08:00
473669cbce rename tag for nbt_type to list instead of noarray and add documentation 2020-09-21 20:58:31 -05:00
a5e6d87aaf remove nbt file 2020-09-18 09:10:59 -05:00
5d3f46b58f Move test to nbt_test.go & don't ignore errors 2020-09-18 09:00:40 -05:00
f0fed0e287 remove outdated readme comment 2020-09-17 22:41:19 -05:00
95b9ba9360 add support for nonarray lists, fix bugs with structs, make compliant with bigtest.nbt 2020-09-17 22:38:48 -05:00
610cb0c7d5 add marshaling of struct and interface types for nbt 2020-09-07 17:45:44 -05:00
cf150c16fa support marshal []int16, []float32, []float64 and []string. More work needed for #50 2020-04-08 16:02:01 +08:00
bcddc6698b add marshal test for nbt library 2020-04-08 13:18:26 +08:00
73727eccb9 Better error message that helps issue #49 . 2020-04-04 17:06:15 +08:00
a908a03fcd Use %w in file ingame.go and nbt package, then we can use errors.Is for compare 2020-03-04 12:37:43 +08:00
3041792dac nbt: fix TagLongArray error message 2020-01-05 01:40:14 +08:00
1073099cbd struct column and chunk, and optimization 2019-08-03 18:02:18 +08:00
e27bb4e2bc struct of Level.dat 2019-08-01 00:03:53 +08:00
e385cb77cb NBT Unmarshaler support 2019-07-31 21:00:30 +08:00
4bd9c44f30 NBT parser can unmarshal TagCompound as map[string]interface{} now 2019-07-31 20:25:41 +08:00
5fbc95d4a0 infer compress type before decode NBT fail 2019-07-31 17:31:16 +08:00
e5c32df53b Fix the NBT decoder return EOF if length equals to 0 2019-07-24 15:29:10 +08:00
d9098676fd Fix the NBT decoder panic if length less than 0 2019-07-24 14:14:33 +08:00
a7858a2459 修正代码中的若干拼写错误 2019-07-16 23:28:02 +08:00
97ba420565 支持Unmarshal到interface{} 2019-06-10 17:07:57 +08:00
be1a95c27e support unmarshal to interface{} .no TagCompound 2019-06-10 16:32:12 +08:00
837bb0b213 try read ChunkData 2019-05-21 00:11:27 +08:00
6be465640f nbt support skip TagIntArray and TagLongArray 2019-05-21 00:11:07 +08:00
2c41d9b901 return ErrEND when reading a TAG_End 2019-05-19 15:44:09 +08:00
e088636fbc fix some misspell 2019-05-19 11:55:58 +08:00
6ecda56de1 fix example output error 2019-05-19 00:23:54 +08:00
1144956f57 update README 2019-05-19 00:17:39 +08:00
b28cc4f2da Marshal without test and TagList 2019-05-19 00:15:14 +08:00
0b9984da07 support IntArray and LongArray 2019-05-18 22:00:52 +08:00
d3c7f45a21 use sync.Map to store type info 2019-05-18 20:10:05 +08:00
7953808e36 implement old NBT format.
TODO: TAG_Int_Array and TAG_Long_Array
2019-05-18 19:22:23 +08:00
b2164833f5 can parse TagCompound and TagString and TagFloat 2019-05-18 18:08:40 +08:00
9cdab82ea3 can parse TAG_String 2019-05-18 01:08:32 +08:00