Table of Contents

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 = 0

One 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 = 2

Multiple 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 .snbt files differ only in putting every list element on its own line.

Spaced = 1

One line with a space after every comma and colon: {a: 1, b: [1, 2], c: [B; 1B, 2B]}. What /data get prints in chat and the default display of NBT Studio, nbtlib, Amulet, and mecha; the readable single-line form for logs and user interfaces.