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()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator NbtDouble(DoubleTag)

public static implicit operator NbtDouble(DoubleTag tag)

Parameters

tag DoubleTag

Returns

NbtDouble

implicit operator DoubleTag(NbtDouble)

public static implicit operator DoubleTag(NbtDouble tag)

Parameters

tag NbtDouble

Returns

DoubleTag