Snbt
Namespace Mc.Scripting.Nbt · Kind class (static)
public static class SnbtStringified NBT (the text form of /data and /summon), through the game’s own parser and printer.
Methods
Section titled “Methods”| Member | Description |
|---|---|
static string Format(NbtTag tag) |
Formats a tag as SNBT. |
static NbtTag Parse(string text) |
Parses SNBT. |
Format
Section titled “Format”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.