nbt

package
v0.0.0-...-2a33acd Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TAG_End       = 0x00
	TAG_Byte      = 0x01
	TAG_Short     = 0x02
	TAG_Int       = 0x03
	TAG_Long      = 0x04
	TAG_Float     = 0x05
	TAG_Double    = 0x06
	TAG_ByteArray = 0x07
	TAG_String    = 0x08
	TAG_List      = 0x09
	TAG_Compound  = 0x0a
	TAG_IntArray  = 0x0b
	TAG_LongArray = 0x0c
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func Empty

func Empty() *Tag

func NewCompoundTag

func NewCompoundTag(name string) *Tag

func ReadData

func ReadData(data []byte) *Tag

func ReadFile

func ReadFile(filename string) *Tag

func (*Tag) Child

func (t *Tag) Child(name string) *Tag

func (*Tag) CompoundAddChild

func (t *Tag) CompoundAddChild(name string, tag_type byte) *Tag

func (*Tag) GetByte

func (t *Tag) GetByte() byte

func (*Tag) GetByteArray

func (t *Tag) GetByteArray() []byte

func (*Tag) GetChildren

func (t *Tag) GetChildren() []*Tag

func (*Tag) GetDouble

func (t *Tag) GetDouble() float64

func (*Tag) GetFloat

func (t *Tag) GetFloat() float32

func (*Tag) GetInt

func (t *Tag) GetInt() int32

func (*Tag) GetListType

func (t *Tag) GetListType() byte

func (*Tag) GetLong

func (t *Tag) GetLong() int64

func (*Tag) GetShort

func (t *Tag) GetShort() int16

func (*Tag) GetString

func (t *Tag) GetString() string

func (*Tag) ListAddChild

func (t *Tag) ListAddChild() *Tag

func (*Tag) ListAddFirst

func (t *Tag) ListAddFirst(tag_type byte) *Tag

func (*Tag) Print

func (t *Tag) Print()

func (*Tag) Serialize

func (t *Tag) Serialize() []byte

func (*Tag) Size

func (t *Tag) Size() int32

func (*Tag) String

func (t *Tag) String() string

func (*Tag) StringIndent

func (t *Tag) StringIndent(indent int) string

func (*Tag) Type

func (t *Tag) Type() byte

func (*Tag) Write

func (t *Tag) Write(data []byte)

func (*Tag) WriteByte

func (t *Tag) WriteByte(value byte)

func (*Tag) WriteByteArray

func (t *Tag) WriteByteArray(value []byte)

func (*Tag) WriteDouble

func (t *Tag) WriteDouble(value float64)

func (*Tag) WriteFloat

func (t *Tag) WriteFloat(value float32)

func (*Tag) WriteInt

func (t *Tag) WriteInt(value int32)

func (*Tag) WriteIntArray

func (t *Tag) WriteIntArray(value []uint32)

func (*Tag) WriteLong

func (t *Tag) WriteLong(value int64)

func (*Tag) WriteLongArray

func (t *Tag) WriteLongArray(value []uint64)

func (*Tag) WriteShort

func (t *Tag) WriteShort(value int16)

func (*Tag) WriteString

func (t *Tag) WriteString(value string)

Jump to

Keyboard shortcuts

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