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
valuedoubleValue 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
tagNamestringName 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
NbtDouble(NbtDouble)
Creates a copy of given NbtDouble tag.
public NbtDouble(NbtDouble other)
Parameters
otherNbtDoubleTag to copy. May not be
null.
Exceptions
- ArgumentNullException
otherisnull.
Properties
TagType
Type of this tag (Double).
public override NbtTagType TagType { get; }
Property Value
Value
Value/payload of this tag (a double-precision floating point number).
public double Value { get; set; }
Property Value
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.