Table of Contents

Class SnbtOptions

Namespace
fNbt
Assembly
fNbt.dll

Settings for SNBT (stringified NBT) text. Every call reads the values it needs when it starts, so changing an instance later does not affect a call in progress. The static Default* properties affect new instances and the overloads that take no options; configure those during startup.

public sealed class SnbtOptions
Inheritance
SnbtOptions
Inherited Members

Constructors

SnbtOptions()

Creates options initialized from the current defaults. Later changes to the defaults do not affect this instance.

public SnbtOptions()

Properties

DefaultWriteLayout

Initial WriteLayout for new options and for ToSnbt(). Initially Compact.

public static SnbtLayout DefaultWriteLayout { get; set; }

Property Value

SnbtLayout

Exceptions

ArgumentOutOfRangeException

value is not a defined layout.

WriteLayout

Layout of the text ToSnbt(SnbtOptions) produces. Initialized from DefaultWriteLayout.

public SnbtLayout WriteLayout { get; set; }

Property Value

SnbtLayout

Exceptions

ArgumentOutOfRangeException

value is not a defined layout.