Commit Graph

72 Commits

Author SHA1 Message Date
130daf82a6 Now we can Decode/Encode StringifiedMessage 2021-07-05 13:05:58 +08:00
2112a604f1 nbt.StringifiedNBT as nbt.NBTEncoder 2021-07-05 01:28:07 +08:00
d7091db5b3 NBT RawMessage fully support 2021-07-05 00:58:41 +08:00
ebc44e7c8b Fix unmarshal error in nbt 2021-07-04 00:59:42 +08:00
8ecb6478a6 Add nbt.RawMessage 2021-07-04 00:37:41 +08:00
4f9779df88 Apply the waring in nbt/README.md 2021-06-22 11:18:18 +08:00
2ff54efb7d Better io error handling 2021-06-22 10:33:07 +08:00
723303ce8d Better syntax error handling 2021-06-22 10:01:41 +08:00
d730153750 Add Benchmark 2021-06-09 23:43:12 +08:00
883c73d5e5 Merge remote-tracking branch 'origin/snbt_convertor' into snbt_convertor
# Conflicts:
#	nbt/snbt_scanner.go
#	nbt/snbt_scanner_test.go
2021-06-02 13:47:54 +08:00
d678e9b45a Optimization makes scanner five times faster 2021-06-02 13:35:07 +08:00
69a8bad025 fix scanner error of number like "100f" 2021-05-27 14:58:40 +08:00
82a2efd6a0 Pass bigTest 2021-05-27 14:19:16 +08:00
d829d3bccf support TAG_List<List/Array> 2021-05-27 10:45:36 +08:00
dd1b8fd9c9 Support TAG_Byte_Array, TAG_Int_Array and TAG_Long_Array 2021-05-27 01:33:08 +08:00
4f148c7515 Add test cases for Typed Array 2021-05-27 01:08:11 +08:00
72599f7058 fix TAG_List<TAG_Compound> 2021-05-27 01:03:52 +08:00
d0c7a295a5 support TAG_List<TAG_Compound> 2021-05-27 00:22:26 +08:00
fa2ab9a5d5 make tagType witten early 2021-05-26 21:43:05 +08:00
233b44a13f Basic SNBT list support 2021-05-26 15:02:49 +08:00
e2fbef9bea Support literal and compound 2021-05-26 03:36:12 +08:00
3b2f81ea1f Quoted string 2021-05-26 02:15:45 +08:00
00fcdb4b14 generate NBT TAG_Compound 2021-05-26 01:35:58 +08:00
1f7d07b279 fix finish number error 2021-05-25 22:03:14 +08:00
c44af2bf34 NBT convert part 1 2021-05-25 20:10:57 +08:00
69601cec28 Fix Unquoted String scanning 2021-05-25 16:13:55 +08:00
5320722ed0 Scan List and Array 2021-05-25 14:25:08 +08:00
0c0459d69d Scan compound 2021-05-25 12:49:57 +08:00
6846e10bb6 Scan numbers 2021-05-25 00:47:57 +08:00
1b38773435 first commit 2021-05-24 22:25:44 +08:00
086b77f389 adjust nbt encoding api 2021-04-04 01:09:45 +08:00
6558738f48 support encoding map #98 2021-04-02 13:42:05 +08:00
b8a3f1a094 Update docs 2021-02-28 13:06:42 +08:00
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