Table of Contents

Class NbtDouble

Namespace
fNbt
Assembly
fNbt.dll

A tag containing a double-precision floating point number.

public sealed class NbtDouble : NbtTag, ICloneable
Inheritance
NbtDouble
Implements
Inherited Members

Constructors

NbtDouble()

Creates an unnamed NbtDouble tag with the default value of 0.

public NbtDouble()

NbtDouble(double)

Creates an unnamed NbtDouble tag with the given value.

public NbtDouble(double value)

Parameters

value double

Value to assign to this tag.

NbtDouble(string?)

Creates an NbtDouble tag with the given name and the default value of 0.

public NbtDouble(string? tagName)

Parameters

tagName string

Name to assign to this tag. May be null.

NbtDouble(string?, double)

Creates an NbtDouble tag with the given name and value.

public NbtDouble(string? tagName, double value)

Parameters

tagName string

Name to assign to this tag. May be null.

value double

Value to assign to this tag.

NbtDouble(NbtDouble)

Creates a copy of given NbtDouble tag.

public NbtDouble(NbtDouble other)

Parameters

other NbtDouble

Tag to copy. May not be null.

Exceptions

ArgumentNullException

other is null.

Properties

TagType

Type of this tag (Double).

public override NbtTagType TagType { get; }

Property Value

NbtTagType

Value

Value/payload of this tag (a double-precision floating point number).

public double Value { get; set; }

Property Value

double

Methods

Clone()

Creates a deep copy of this tag.

public override object Clone()

Returns

object

A new NbtTag object that is a deep copy of this instance.