Files
go-mc/nbt/interface.go
2022-03-09 16:12:47 +08:00

13 lines
185 B
Go

package nbt
import "io"
type Unmarshaler interface {
UnmarshalNBT(tagType byte, r DecoderReader) error
}
type Marshaler interface {
TagType() byte
MarshalNBT(w io.Writer) error
}