Documentation ¶
Index ¶
- func CompactJson(tag *Tag) string
- func CompactStringify(tag *Tag) string
- func Decode(r io.Reader, tag *Tag) error
- func Encode(w io.Writer, tag *Tag) error
- func Json(tag *Tag) string
- func Parse(bm *SnbtTokenBitmaps, tag *Tag) error
- func PrettyJson(tag *Tag, space string, indent string) string
- func PrettyStringify(tag *Tag, space string, indent string) string
- func Stringify(tag *Tag) string
- type ByteArrayPayload
- func (p *ByteArrayPayload) Decode(r io.Reader) error
- func (p *ByteArrayPayload) Encode(w io.Writer) error
- func (p *ByteArrayPayload) Json(space string, indent string, depth int) string
- func (p *ByteArrayPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *ByteArrayPayload) Stringify(space string, indent string, depth int) string
- func (p *ByteArrayPayload) TypeId() TagType
- type ByteArrayTag
- func (t *ByteArrayTag) Decode(r io.Reader) error
- func (t *ByteArrayTag) Encode(w io.Writer) error
- func (t *ByteArrayTag) Json(space string, indent string, depth int) string
- func (t *ByteArrayTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *ByteArrayTag) Stringify(space string, indent string, depth int) string
- func (t *ByteArrayTag) TypeId() TagType
- type BytePayload
- func (p *BytePayload) Decode(r io.Reader) error
- func (p *BytePayload) Encode(w io.Writer) error
- func (p *BytePayload) Json(space string, indent string, depth int) string
- func (p *BytePayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *BytePayload) Stringify(space string, indent string, depth int) string
- func (p *BytePayload) TypeId() TagType
- type ByteTag
- func (t *ByteTag) Decode(r io.Reader) error
- func (t *ByteTag) Encode(w io.Writer) error
- func (t *ByteTag) Json(space string, indent string, depth int) string
- func (t *ByteTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *ByteTag) Stringify(space string, indent string, depth int) string
- func (t *ByteTag) TypeId() TagType
- type CompoundPayload
- func (p *CompoundPayload) Decode(r io.Reader) error
- func (p *CompoundPayload) Encode(w io.Writer) error
- func (p *CompoundPayload) Json(space string, indent string, depth int) string
- func (p *CompoundPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *CompoundPayload) Stringify(space string, indent string, depth int) string
- func (p *CompoundPayload) TypeId() TagType
- type CompoundTag
- func (t *CompoundTag) Decode(r io.Reader) error
- func (t *CompoundTag) Encode(w io.Writer) error
- func (t *CompoundTag) Json(space string, indent string, depth int) string
- func (t *CompoundTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *CompoundTag) Stringify(space string, indent string, depth int) string
- func (t *CompoundTag) TypeId() TagType
- type DoublePayload
- func (p *DoublePayload) Decode(r io.Reader) error
- func (p *DoublePayload) Encode(w io.Writer) error
- func (p *DoublePayload) Json(space string, indent string, depth int) string
- func (p *DoublePayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *DoublePayload) Stringify(space string, indent string, depth int) string
- func (p *DoublePayload) TypeId() TagType
- type DoubleTag
- func (t *DoubleTag) Decode(r io.Reader) error
- func (t *DoubleTag) Encode(w io.Writer) error
- func (t *DoubleTag) Json(space string, indent string, depth int) string
- func (t *DoubleTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *DoubleTag) Stringify(space string, indent string, depth int) string
- func (t *DoubleTag) TypeId() TagType
- type EndTag
- func (t *EndTag) Decode(r io.Reader) error
- func (t *EndTag) Encode(w io.Writer) error
- func (t *EndTag) Json(space string, indent string, depth int) string
- func (t *EndTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *EndTag) Stringify(space string, indent string, depth int) string
- func (t *EndTag) TypeId() TagType
- type FloatPayload
- func (p *FloatPayload) Decode(r io.Reader) error
- func (p *FloatPayload) Encode(w io.Writer) error
- func (p *FloatPayload) Json(space string, indent string, depth int) string
- func (p *FloatPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *FloatPayload) Stringify(space string, indent string, depth int) string
- func (p *FloatPayload) TypeId() TagType
- type FloatTag
- func (t *FloatTag) Decode(r io.Reader) error
- func (t *FloatTag) Encode(w io.Writer) error
- func (t *FloatTag) Json(space string, indent string, depth int) string
- func (t *FloatTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *FloatTag) Stringify(space string, indent string, depth int) string
- func (t *FloatTag) TypeId() TagType
- type IntArrayPayload
- func (p *IntArrayPayload) Decode(r io.Reader) error
- func (p *IntArrayPayload) Encode(w io.Writer) error
- func (p *IntArrayPayload) Json(space string, indent string, depth int) string
- func (p *IntArrayPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *IntArrayPayload) Stringify(space string, indent string, depth int) string
- func (p *IntArrayPayload) TypeId() TagType
- type IntArrayTag
- func (t *IntArrayTag) Decode(r io.Reader) error
- func (t *IntArrayTag) Encode(w io.Writer) error
- func (t *IntArrayTag) Json(space string, indent string, depth int) string
- func (t *IntArrayTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *IntArrayTag) Stringify(space string, indent string, depth int) string
- func (t *IntArrayTag) TypeId() TagType
- type IntPayload
- func (p *IntPayload) Decode(r io.Reader) error
- func (p *IntPayload) Encode(w io.Writer) error
- func (p *IntPayload) Json(space string, indent string, depth int) string
- func (p *IntPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *IntPayload) Stringify(space string, indent string, depth int) string
- func (p *IntPayload) TypeId() TagType
- type IntTag
- func (t *IntTag) Decode(r io.Reader) error
- func (t *IntTag) Encode(w io.Writer) error
- func (t *IntTag) Json(space string, indent string, depth int) string
- func (t *IntTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *IntTag) Stringify(space string, indent string, depth int) string
- func (t *IntTag) TypeId() TagType
- type ListPayload
- func (p *ListPayload) Decode(r io.Reader) error
- func (p *ListPayload) Encode(w io.Writer) error
- func (p *ListPayload) Json(space string, indent string, depth int) string
- func (p *ListPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *ListPayload) Stringify(space string, indent string, depth int) string
- func (p *ListPayload) TypeId() TagType
- type ListTag
- func (t *ListTag) Decode(r io.Reader) error
- func (t *ListTag) Encode(w io.Writer) error
- func (t *ListTag) Json(space string, indent string, depth int) string
- func (t *ListTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *ListTag) Stringify(space string, indent string, depth int) string
- func (t *ListTag) TypeId() TagType
- type LongArrayPayload
- func (p *LongArrayPayload) Decode(r io.Reader) error
- func (p *LongArrayPayload) Encode(w io.Writer) error
- func (p *LongArrayPayload) Json(space string, indent string, depth int) string
- func (p *LongArrayPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *LongArrayPayload) Stringify(space string, indent string, depth int) string
- func (p *LongArrayPayload) TypeId() TagType
- type LongArrayTag
- func (t *LongArrayTag) Decode(r io.Reader) error
- func (t *LongArrayTag) Encode(w io.Writer) error
- func (t *LongArrayTag) Json(space string, indent string, depth int) string
- func (t *LongArrayTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *LongArrayTag) Stringify(space string, indent string, depth int) string
- func (t *LongArrayTag) TypeId() TagType
- type LongPayload
- func (p *LongPayload) Decode(r io.Reader) error
- func (p *LongPayload) Encode(w io.Writer) error
- func (p *LongPayload) Json(space string, indent string, depth int) string
- func (p *LongPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *LongPayload) Stringify(space string, indent string, depth int) string
- func (p *LongPayload) TypeId() TagType
- type LongTag
- func (t *LongTag) Decode(r io.Reader) error
- func (t *LongTag) Encode(w io.Writer) error
- func (t *LongTag) Json(space string, indent string, depth int) string
- func (t *LongTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *LongTag) Stringify(space string, indent string, depth int) string
- func (t *LongTag) TypeId() TagType
- type Payload
- type ShortPayload
- func (p *ShortPayload) Decode(r io.Reader) error
- func (p *ShortPayload) Encode(w io.Writer) error
- func (p *ShortPayload) Json(space string, indent string, depth int) string
- func (p *ShortPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *ShortPayload) Stringify(space string, indent string, depth int) string
- func (p *ShortPayload) TypeId() TagType
- type ShortTag
- func (t *ShortTag) Decode(r io.Reader) error
- func (t *ShortTag) Encode(w io.Writer) error
- func (t *ShortTag) Json(space string, indent string, depth int) string
- func (t *ShortTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *ShortTag) Stringify(space string, indent string, depth int) string
- func (t *ShortTag) TypeId() TagType
- type SnbtTokenBitmaps
- type StringPayload
- func (p *StringPayload) Decode(r io.Reader) error
- func (p *StringPayload) Encode(w io.Writer) error
- func (p *StringPayload) Json(space string, indent string, depth int) string
- func (p *StringPayload) Parse(bm *SnbtTokenBitmaps) error
- func (p *StringPayload) Stringify(space string, indent string, depth int) string
- func (p *StringPayload) TypeId() TagType
- type StringTag
- func (t *StringTag) Decode(r io.Reader) error
- func (t *StringTag) Encode(w io.Writer) error
- func (t *StringTag) Json(space string, indent string, depth int) string
- func (t *StringTag) Parse(bm *SnbtTokenBitmaps) error
- func (t *StringTag) Stringify(space string, indent string, depth int) string
- func (t *StringTag) TypeId() TagType
- type Tag
- type TagName
- type TagType
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactJson ¶
func CompactStringify ¶
func Parse ¶
func Parse(bm *SnbtTokenBitmaps, tag *Tag) error
Types ¶
type ByteArrayPayload ¶
type ByteArrayPayload []int8
Payload
func (*ByteArrayPayload) Json ¶
func (p *ByteArrayPayload) Json(space string, indent string, depth int) string
func (*ByteArrayPayload) Parse ¶
func (p *ByteArrayPayload) Parse(bm *SnbtTokenBitmaps) error
func (*ByteArrayPayload) Stringify ¶
func (p *ByteArrayPayload) Stringify(space string, indent string, depth int) string
func (*ByteArrayPayload) TypeId ¶
func (p *ByteArrayPayload) TypeId() TagType
type ByteArrayTag ¶
type ByteArrayTag struct { TagName ByteArrayPayload }
Tag
func (*ByteArrayTag) Json ¶
func (t *ByteArrayTag) Json(space string, indent string, depth int) string
func (*ByteArrayTag) Parse ¶
func (t *ByteArrayTag) Parse(bm *SnbtTokenBitmaps) error
func (*ByteArrayTag) Stringify ¶
func (t *ByteArrayTag) Stringify(space string, indent string, depth int) string
func (*ByteArrayTag) TypeId ¶
func (t *ByteArrayTag) TypeId() TagType
type BytePayload ¶
type BytePayload int8
Payload
func (*BytePayload) Json ¶
func (p *BytePayload) Json(space string, indent string, depth int) string
Payload
type ByteTag ¶
type ByteTag struct { TagName BytePayload }
Tag
func (*ByteTag) Parse ¶
func (t *ByteTag) Parse(bm *SnbtTokenBitmaps) error
type CompoundPayload ¶
type CompoundPayload []Tag
Payload
func (*CompoundPayload) Json ¶
func (p *CompoundPayload) Json(space string, indent string, depth int) string
func (*CompoundPayload) Parse ¶
func (p *CompoundPayload) Parse(bm *SnbtTokenBitmaps) error
func (*CompoundPayload) Stringify ¶
func (p *CompoundPayload) Stringify(space string, indent string, depth int) string
func (*CompoundPayload) TypeId ¶
func (p *CompoundPayload) TypeId() TagType
type CompoundTag ¶
type CompoundTag struct { TagName CompoundPayload }
Tag
func (*CompoundTag) Json ¶
func (t *CompoundTag) Json(space string, indent string, depth int) string
func (*CompoundTag) Parse ¶
func (t *CompoundTag) Parse(bm *SnbtTokenBitmaps) error
func (*CompoundTag) Stringify ¶
func (t *CompoundTag) Stringify(space string, indent string, depth int) string
func (*CompoundTag) TypeId ¶
func (t *CompoundTag) TypeId() TagType
type DoublePayload ¶
type DoublePayload float64
Payload
func DoublePayloadPtr ¶
func DoublePayloadPtr(x DoublePayload) *DoublePayload
func (*DoublePayload) Json ¶
func (p *DoublePayload) Json(space string, indent string, depth int) string
func (*DoublePayload) Parse ¶
func (p *DoublePayload) Parse(bm *SnbtTokenBitmaps) error
func (*DoublePayload) Stringify ¶
func (p *DoublePayload) Stringify(space string, indent string, depth int) string
func (*DoublePayload) TypeId ¶
func (p *DoublePayload) TypeId() TagType
type DoubleTag ¶
type DoubleTag struct { TagName DoublePayload }
Tag
func (*DoubleTag) Parse ¶
func (t *DoubleTag) Parse(bm *SnbtTokenBitmaps) error
type FloatPayload ¶
type FloatPayload float32
Payload
func FloatPayloadPtr ¶
func FloatPayloadPtr(x FloatPayload) *FloatPayload
func (*FloatPayload) Json ¶
func (p *FloatPayload) Json(space string, indent string, depth int) string
func (*FloatPayload) Parse ¶
func (p *FloatPayload) Parse(bm *SnbtTokenBitmaps) error
func (*FloatPayload) Stringify ¶
func (p *FloatPayload) Stringify(space string, indent string, depth int) string
func (*FloatPayload) TypeId ¶
func (p *FloatPayload) TypeId() TagType
type FloatTag ¶
type FloatTag struct { TagName FloatPayload }
Tag
func (*FloatTag) Parse ¶
func (t *FloatTag) Parse(bm *SnbtTokenBitmaps) error
type IntArrayPayload ¶
type IntArrayPayload []int32
Payload
func (*IntArrayPayload) Json ¶
func (p *IntArrayPayload) Json(space string, indent string, depth int) string
func (*IntArrayPayload) Parse ¶
func (p *IntArrayPayload) Parse(bm *SnbtTokenBitmaps) error
func (*IntArrayPayload) Stringify ¶
func (p *IntArrayPayload) Stringify(space string, indent string, depth int) string
func (*IntArrayPayload) TypeId ¶
func (p *IntArrayPayload) TypeId() TagType
type IntArrayTag ¶
type IntArrayTag struct { TagName IntArrayPayload }
Tag
func (*IntArrayTag) Json ¶
func (t *IntArrayTag) Json(space string, indent string, depth int) string
func (*IntArrayTag) Parse ¶
func (t *IntArrayTag) Parse(bm *SnbtTokenBitmaps) error
func (*IntArrayTag) Stringify ¶
func (t *IntArrayTag) Stringify(space string, indent string, depth int) string
func (*IntArrayTag) TypeId ¶
func (t *IntArrayTag) TypeId() TagType
type IntPayload ¶
type IntPayload int32
Payload
func IntPayloadPtr ¶
func IntPayloadPtr(x IntPayload) *IntPayload
func (*IntPayload) Parse ¶
func (p *IntPayload) Parse(bm *SnbtTokenBitmaps) error
func (*IntPayload) Stringify ¶
func (p *IntPayload) Stringify(space string, indent string, depth int) string
func (*IntPayload) TypeId ¶
func (p *IntPayload) TypeId() TagType
type IntTag ¶
type IntTag struct { TagName IntPayload }
Tag
func (*IntTag) Parse ¶
func (t *IntTag) Parse(bm *SnbtTokenBitmaps) error
type ListPayload ¶
type ListPayload []Payload
Payload
func (*ListPayload) Json ¶
func (p *ListPayload) Json(space string, indent string, depth int) string
func (*ListPayload) Parse ¶
func (p *ListPayload) Parse(bm *SnbtTokenBitmaps) error
func (*ListPayload) Stringify ¶
func (p *ListPayload) Stringify(space string, indent string, depth int) string
func (*ListPayload) TypeId ¶
func (p *ListPayload) TypeId() TagType
type ListTag ¶
type ListTag struct { TagName ListPayload }
Tag
func (*ListTag) Parse ¶
func (t *ListTag) Parse(bm *SnbtTokenBitmaps) error
type LongArrayPayload ¶
type LongArrayPayload []int64
Payload
func (*LongArrayPayload) Json ¶
func (p *LongArrayPayload) Json(space string, indent string, depth int) string
func (*LongArrayPayload) Parse ¶
func (p *LongArrayPayload) Parse(bm *SnbtTokenBitmaps) error
func (*LongArrayPayload) Stringify ¶
func (p *LongArrayPayload) Stringify(space string, indent string, depth int) string
func (*LongArrayPayload) TypeId ¶
func (p *LongArrayPayload) TypeId() TagType
type LongArrayTag ¶
type LongArrayTag struct { TagName LongArrayPayload }
Tag
func (*LongArrayTag) Json ¶
func (t *LongArrayTag) Json(space string, indent string, depth int) string
func (*LongArrayTag) Parse ¶
func (t *LongArrayTag) Parse(bm *SnbtTokenBitmaps) error
func (*LongArrayTag) Stringify ¶
func (t *LongArrayTag) Stringify(space string, indent string, depth int) string
func (*LongArrayTag) TypeId ¶
func (t *LongArrayTag) TypeId() TagType
type LongPayload ¶
type LongPayload int64
Payload
func LongPayloadPtr ¶
func LongPayloadPtr(x LongPayload) *LongPayload
func (*LongPayload) Json ¶
func (p *LongPayload) Json(space string, indent string, depth int) string
func (*LongPayload) Parse ¶
func (p *LongPayload) Parse(bm *SnbtTokenBitmaps) error
func (*LongPayload) Stringify ¶
func (p *LongPayload) Stringify(space string, indent string, depth int) string
func (*LongPayload) TypeId ¶
func (p *LongPayload) TypeId() TagType
type LongTag ¶
type LongTag struct { TagName LongPayload }
Tag
func (*LongTag) Parse ¶
func (t *LongTag) Parse(bm *SnbtTokenBitmaps) error
type Payload ¶
type Payload interface { TypeId() TagType Decode(r io.Reader) error Encode(w io.Writer) error Stringify(string, string, int) string Parse(*SnbtTokenBitmaps) error Json(string, string, int) string }
Payload
func NewPayload ¶
func NewPayloadFromSnbt ¶
func NewPayloadFromSnbt(bm *SnbtTokenBitmaps) (Payload, error)
type ShortPayload ¶
type ShortPayload int16
Payload
func ShortPayloadPtr ¶
func ShortPayloadPtr(x ShortPayload) *ShortPayload
func (*ShortPayload) Json ¶
func (p *ShortPayload) Json(space string, indent string, depth int) string
func (*ShortPayload) Parse ¶
func (p *ShortPayload) Parse(bm *SnbtTokenBitmaps) error
func (*ShortPayload) Stringify ¶
func (p *ShortPayload) Stringify(space string, indent string, depth int) string
func (*ShortPayload) TypeId ¶
func (p *ShortPayload) TypeId() TagType
type ShortTag ¶
type ShortTag struct { TagName ShortPayload }
Tag
func (*ShortTag) Parse ¶
func (t *ShortTag) Parse(bm *SnbtTokenBitmaps) error
type SnbtTokenBitmaps ¶
type SnbtTokenBitmaps struct { Raw []byte StringMaskBitmap []uint64 ValueMaskBitmap []uint64 TokenBitmaps map[rune][]uint64 PrevToken Token CurrToken Token }
func NewSnbtTokenBitmaps ¶
func NewSnbtTokenBitmaps(snbt string) SnbtTokenBitmaps
func NewSnbtTokenBitmapsWithCapacity ¶
func NewSnbtTokenBitmapsWithCapacity(snbtLen int) SnbtTokenBitmaps
func (*SnbtTokenBitmaps) Compact ¶
func (bm *SnbtTokenBitmaps) Compact() SnbtTokenBitmaps
func (*SnbtTokenBitmaps) NextToken ¶
func (bm *SnbtTokenBitmaps) NextToken(allow, deny string) error
func (*SnbtTokenBitmaps) SetMaskBitmaps ¶
func (bm *SnbtTokenBitmaps) SetMaskBitmaps()
func (*SnbtTokenBitmaps) SetTokenBitmaps ¶
func (bm *SnbtTokenBitmaps) SetTokenBitmaps()
type StringPayload ¶
type StringPayload string
Payload
func StringPayloadPtr ¶
func StringPayloadPtr(x StringPayload) *StringPayload
func (*StringPayload) Json ¶
func (p *StringPayload) Json(space string, indent string, depth int) string
func (*StringPayload) Parse ¶
func (p *StringPayload) Parse(bm *SnbtTokenBitmaps) error
func (*StringPayload) Stringify ¶
func (p *StringPayload) Stringify(space string, indent string, depth int) string
func (*StringPayload) TypeId ¶
func (p *StringPayload) TypeId() TagType
type StringTag ¶
type StringTag struct { TagName StringPayload }
Tag
func (*StringTag) Parse ¶
func (t *StringTag) Parse(bm *SnbtTokenBitmaps) error
type Tag ¶
type Tag interface { TypeId() TagType Decode(r io.Reader) error Encode(w io.Writer) error Stringify(string, string, int) string Parse(*SnbtTokenBitmaps) error Json(string, string, int) string }
Tag
func NewTagFromSnbt ¶
func NewTagFromSnbt(bm *SnbtTokenBitmaps) (Tag, error)
Click to show internal directories.
Click to hide internal directories.