Skip to content

Snbt

Namespace Mc.Scripting.Nbt · Kind class (static)

public static class Snbt

Stringified NBT (the text form of /data and /summon), through the game’s own parser and printer.

Member Description
static string Format(NbtTag tag) Formats a tag as SNBT.
static NbtTag Parse(string text) Parses SNBT.
public static string Format(NbtTag tag)

Formats a tag as SNBT.

Parameters

Name Type Description
tag NbtTag The tag.

Returns string: The text.

public static NbtTag Parse(string text)

Parses SNBT.

Parameters

Name Type Description
text string The text.

Returns NbtTag: The tag.

Throws

  • System.FormatException: The text is not valid SNBT.

NbtTag