nbt

package
v0.0.0-...-a5a0d7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(writer io.Writer, name string, tag Tag) error

func WriteCompressed

func WriteCompressed(writer io.Writer, name string, tag Tag) error

Types

type ByteArrayTag

type ByteArrayTag []uint8

func (ByteArrayTag) Type

func (tag ByteArrayTag) Type() Type

type ByteTag

type ByteTag uint8

func (ByteTag) Type

func (tag ByteTag) Type() Type

type CompoundTag

type CompoundTag map[string]Tag

func (CompoundTag) Type

func (tag CompoundTag) Type() Type

type DoubleTag

type DoubleTag float64

func (DoubleTag) Type

func (tag DoubleTag) Type() Type

type EndTag

type EndTag struct{}

func (EndTag) Type

func (tag EndTag) Type() Type

type FloatTag

type FloatTag float32

func (FloatTag) Type

func (tag FloatTag) Type() Type

type IntArrayTag

type IntArrayTag []int32

func (IntArrayTag) Type

func (tag IntArrayTag) Type() Type

type IntTag

type IntTag int32

func (IntTag) Type

func (tag IntTag) Type() Type

type ListTag

type ListTag []Tag

func (ListTag) Type

func (tag ListTag) Type() Type

type LongArrayTag

type LongArrayTag []int64

func (LongArrayTag) Type

func (tag LongArrayTag) Type() Type

type LongTag

type LongTag int64

func (LongTag) Type

func (tag LongTag) Type() Type

type ShortTag

type ShortTag int16

func (ShortTag) Type

func (tag ShortTag) Type() Type

type StringTag

type StringTag string

func (StringTag) Type

func (tag StringTag) Type() Type

type Tag

type Tag interface {
	Type() Type
}

func Read

func Read(reader io.Reader) (string, Tag, error)

func ReadCompressed

func ReadCompressed(reader io.Reader) (string, Tag, error)

type Type

type Type uint8
const (
	TypeEnd Type = iota
	TypeByte
	TypeShort
	TypeInt
	TypeLong
	TypeFloat
	TypeDouble
	TypeByteArray
	TypeString
	TypeList
	TypeCompound
	TypeIntArray
	TypeLongArray
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL