Enum SnbtLayout
- Namespace
- fNbt
- Assembly
- fNbt.dll
Text layout produced by ToSnbt(). The layouts differ only in whitespace, which every SNBT reader skips, so each reads wherever the compact form reads; ToSnbt() says what that form asks of its reader.
public enum SnbtLayout
Fields
Compact = 0One line, no whitespace:
{a:1,b:[1,2],c:[B;1B,2B]}. What Minecraft itself prints (Tag.toString()) and what commands, logs and command storage use. The default.Indented = 2Multiple lines, four-space indentation, one member per line as
key: value; compounds and lists of containers expand, while arrays and lists of scalars stay on one line. The readable form for files and editors, as NBT Studio's expanded view and nbtlib's indented output write it. Minecraft's own.snbtfiles differ only in putting every list element on its own line.Spaced = 1One line with a space after every comma and colon:
{a: 1, b: [1, 2], c: [B; 1B, 2B]}. What/data getprints in chat and the default display of NBT Studio, nbtlib, Amulet, and mecha; the readable single-line form for logs and user interfaces.