NBT RawMessage fully support

This commit is contained in:
Tnze
2021-07-05 00:58:41 +08:00
parent 43588a8894
commit d7091db5b3
13 changed files with 196 additions and 94 deletions

View File

@ -1,9 +1,12 @@
package nbt
type Unmarshaler interface {
Unmarshal(tagType byte, tagName string, r DecoderReader) error
import "io"
type NBTDecoder interface {
Decode(tagType byte, r DecoderReader) error
}
//type Marshaller interface{
// Marshal()
//}
type NBTEncoder interface {
TagType() byte
Encode(w io.Writer) error
}