Skip to content

Class NbtDouble

Namespace: Void.Minecraft.Nbt.Tags
Assembly: Void.Minecraft.dll

Represents a double-precision floating-point NBT tag.

public record NbtDouble : NbtTag, IEquatable<NbtTag>, IEquatable<NbtDouble>

Inheritance

objectNbtTagNbtDouble

Implements

IEquatable<NbtTag>, IEquatable<NbtDouble>

Inherited Members

NbtTag.Name, NbtTag.Type, NbtTag.AsStream(NbtFormatOptions, bool), NbtTag.AsJsonNode(), NbtTag.ToString(), NbtTag.ToSnbt(), NbtTag.Parse(string), NbtTag.Parse(ReadOnlyMemory<byte>, out NbtTag, bool, NbtFormatOptions), NbtTag.Parse<T>(ReadOnlyMemory<byte>, out T, bool, NbtFormatOptions), NbtTag.ReadFrom<TBuffer>(ref TBuffer, bool), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

NbtDouble(double)

Represents a double-precision floating-point NBT tag.

public NbtDouble(double Value)

Parameters

Value double

The numeric value stored by the tag.

Properties

Value

The numeric value stored by the tag.

public double Value { get; init; }

Property Value

double

Methods

ToString()

Serializes this tag as SNBT.

public override string ToString()

Returns

string

The SNBT representation.

Operators

implicit operator NbtDouble(DoubleTag)

Converts a SharpNBT double tag while preserving its name and value.

public static implicit operator NbtDouble(DoubleTag tag)

Parameters

tag DoubleTag

The source tag.

Returns

NbtDouble

The converted tag.

implicit operator DoubleTag(NbtDouble)

Converts to a SharpNBT double tag while preserving the name and value.

public static implicit operator DoubleTag(NbtDouble tag)

Parameters

tag NbtDouble

The source tag.

Returns

DoubleTag

The converted tag.