add support for nonarray lists, fix bugs with structs, make compliant with bigtest.nbt

This commit is contained in:
Mark Asp
2020-09-17 22:38:48 -05:00
parent 610cb0c7d5
commit 95b9ba9360
5 changed files with 246 additions and 152 deletions

View File

@ -22,8 +22,13 @@ const (
TagCompound
TagIntArray
TagLongArray
TagNone = 0xFF
)
func IsArrayTag(ty byte) bool {
return ty == TagByteArray || ty == TagIntArray || ty == TagLongArray
}
type DecoderReader = interface {
io.ByteScanner
io.Reader