Versions in this module Expand all Collapse all v1 v1.20.2 Aug 8, 2023 Changes in this version + const TagByte + const TagByteArray + const TagCompound + const TagDouble + const TagEnd + const TagFloat + const TagInt + const TagIntArray + const TagList + const TagLong + const TagLongArray + const TagShort + const TagString + var ErrEND = errors.New("unexpected TAG_End") + func Marshal(v any) ([]byte, error) + func Unmarshal(data []byte, v any) error + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(v any) (string, error) + func (d *Decoder) DisallowUnknownFields() + type DecoderReader = interface + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v any, tagName string) error + type Marshaler interface + MarshalNBT func(w io.Writer) error + TagType func() byte + type RawMessage struct + Data []byte + Type byte + func (m *RawMessage) UnmarshalNBT(tagType byte, r DecoderReader) error + func (m RawMessage) MarshalNBT(w io.Writer) error + func (m RawMessage) String() string + func (m RawMessage) TagType() byte + func (m RawMessage) Unmarshal(v any) error + type StringifiedMessage string + func (m *StringifiedMessage) UnmarshalNBT(tagType byte, r DecoderReader) error + func (m StringifiedMessage) MarshalNBT(w io.Writer) error + func (m StringifiedMessage) TagType() byte + type SyntaxError struct + Message string + Offset int + func (e *SyntaxError) Error() string + type Unmarshaler interface + UnmarshalNBT func(tagType byte, r DecoderReader) error