Documentation
¶
Index ¶
Constants ¶
View Source
const ( NONE compression = iota GZIP ZIP TAR )
Variables ¶
This section is empty.
Functions ¶
func MarshalNJSON ¶
Types ¶
type List ¶
func (List) MarshalJSON ¶
type Marshaler ¶
Marshaler is the interface implemented by types that can marshal themselves into valid NJSON.
type NBT ¶
type NBT struct {
// contains filtered or unexported fields
}
NBT is a go struct representation of a Minecraft NBT object.
func New ¶
New creates a new NBT object. The given data will be completely parsed, including decompression (if compressed).
The resulting NBT object can be used to change or get single nbt values and compose it again.
func (*NBT) MarshalJSON ¶
func (*NBT) MarshalNJSON ¶
type TagType ¶
type TagType byte
func (TagType) Annotation ¶
func (t TagType) Annotation() TypeAnnotation
type TypeAnnotation ¶
type TypeAnnotation uint8
const ( NoAnnotation TypeAnnotation = iota InferenceAnnotation CompoundAnnotation ByteArrayAnnotation IntArrayAnnotation LongArrayAnnotation InferenceArrayAnnotation ByteAnnotation ShortAnnotation IntAnnotation LongAnnotation FloatAnnotation DoubleAnnotation StringAnnotation )
func AnnotationOf ¶
func AnnotationOf(v reflect.Value) TypeAnnotation
func (TypeAnnotation) Characters ¶
func (ta TypeAnnotation) Characters() string
func (TypeAnnotation) String ¶
func (ta TypeAnnotation) String() string
func (TypeAnnotation) StringSubtype ¶
func (ta TypeAnnotation) StringSubtype(sub string) string
type UnsupportedValueError ¶
type UnsupportedValueError struct {
Str string
}
An UnsupportedValueError is returned by Marshal when attempting to encode an unsupported value.
func (*UnsupportedValueError) Error ¶
func (e *UnsupportedValueError) Error() string
Error implements [[error]]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.