Skip to content

Nbt.Elements.NbtPrimitive

Hector Fernando Ricardez Lara edited this page Oct 25, 2022 · 5 revisions

NbtPrimitive<T>

BedrockTools.Nbt.Elements.NbtPrimitive

BedrockTools.Nbt.Elements.NbtElement

Implements

BedrockTools.Nbt.Elements.INbtValue

public class NbtPrimitive<T>: NbtElement, INbtValue

Represents a Nbt that holds a primitive type, you can find a list of primitives below.

Constructors

Definition Description
NbtPrimitive(T) Receives the value to store and sets this.Value to it.

Properties

Definition Description
NbtTag Tag Readonly Returns which Nbt type this object represents
T Value Readonly Returns the value it holds.

Methods

Definition Description
string ToString() Returns the SNBT representation