Skip to content

Class NbtStringSerializer

Namespace: Void.Minecraft.Nbt.Serializers.String
Assembly: Void.Minecraft.dll

Converts NBT tags to and from standard stringified NBT.

public static class NbtStringSerializer

Inheritance

objectNbtStringSerializer

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

Deserialize(string)

Parses an SNBT compound.

public static NbtTag Deserialize(string value)

Parameters

value string

The SNBT text.

Returns

NbtTag

The parsed tag.

Serialize(NbtTag)

Serializes an NBT tag, including its name only when the name is nonempty.

public static string Serialize(NbtTag tag)

Parameters

tag NbtTag

The tag to serialize.

Returns

string

The SNBT representation.