Documentation ¶
Index ¶
- Constants
- Variables
- func WriteNbt(writer io.Writer, nbt Nbt) (err error)
- func WriteNbtNamed(writer io.Writer, nbt Nbt, name string) (err error)
- type ErrorLimit
- type ErrorUnexpectedNbtTag
- type Nbt
- func (this Nbt) Bool(name string) (ret bool, ok bool)
- func (this Nbt) ByteArray(name string) (ret []byte, ok bool)
- func (this Nbt) Float32(name string) (ret float32, ok bool)
- func (this Nbt) Float64(name string) (ret float64, ok bool)
- func (this Nbt) Int16(name string) (ret int16, ok bool)
- func (this Nbt) Int32(name string) (ret int32, ok bool)
- func (this Nbt) Int32Array(name string) (ret []int32, ok bool)
- func (this Nbt) Int64(name string) (ret int64, ok bool)
- func (this Nbt) Int64Array(name string) (ret []int64, ok bool)
- func (this Nbt) Int8(name string) (ret int8, ok bool)
- func (this Nbt) List(name string) (ret NbtList, ok bool)
- func (this Nbt) Nbt(name string) (ret Nbt, ok bool)
- func (this Nbt) String(name string) (ret string, ok bool)
- type NbtList
- func (this NbtList) AsByteArray() [][]byte
- func (this NbtList) AsFloat32() []int32
- func (this NbtList) AsFloat64() []int64
- func (this NbtList) AsInt16() []int16
- func (this NbtList) AsInt32() []int32
- func (this NbtList) AsInt32Array() [][]int32
- func (this NbtList) AsInt64() []int64
- func (this NbtList) AsInt64Array() [][]int64
- func (this NbtList) AsInt8() []int8
- func (this NbtList) AsList() []NbtList
- func (this NbtList) AsNbt() []Nbt
- func (this NbtList) AsString() []string
- func (this NbtList) Nil() bool
- type NbtTag
Constants ¶
View Source
const ( ListLimit = 2097152 ByteArrayLimit = 16777216 Int32ArrayLimit = ByteArrayLimit Int64ArrayLimit = ByteArrayLimit DepthLimit = 512 )
Variables ¶
View Source
var ErrorUnexpectedType error = errors.New("Unexpected type")
Functions ¶
Types ¶
type ErrorLimit ¶
func (ErrorLimit) Error ¶
func (this ErrorLimit) Error() string
type ErrorUnexpectedNbtTag ¶
type ErrorUnexpectedNbtTag NbtTag
func (ErrorUnexpectedNbtTag) Error ¶
func (this ErrorUnexpectedNbtTag) Error() string
type NbtList ¶
type NbtList struct {
// contains filtered or unexported fields
}
func WrappedNbtList ¶
func WrappedNbtList(array interface{}) NbtList
func (NbtList) AsByteArray ¶
func (NbtList) AsInt32Array ¶
func (NbtList) AsInt64Array ¶
Click to show internal directories.
Click to hide internal directories.