Class NbtLong
- Namespace
- fNbt
- Assembly
- fNbt.dll
A tag containing a single signed 64-bit integer.
public sealed class NbtLong : NbtTag, ICloneable
- Inheritance
-
NbtLong
- Implements
- Inherited Members
Constructors
NbtLong()
Creates an unnamed NbtLong tag with the default value of 0.
public NbtLong()
NbtLong(long)
Creates an unnamed NbtLong tag with the given value.
public NbtLong(long value)
Parameters
valuelongValue to assign to this tag.
NbtLong(string?)
Creates an NbtLong tag with the given name and the default value of 0.
public NbtLong(string? tagName)
Parameters
tagNamestringName to assign to this tag. May be
null.
NbtLong(string?, long)
Creates an NbtLong tag with the given name and value.
public NbtLong(string? tagName, long value)
Parameters
NbtLong(NbtLong)
Creates a copy of given NbtLong tag.
public NbtLong(NbtLong other)
Parameters
otherNbtLongTag to copy. May not be
null.
Exceptions
- ArgumentNullException
otherisnull.
Properties
TagType
Type of this tag (Long).
public override NbtTagType TagType { get; }
Property Value
Value
Value/payload of this tag (a single signed 64-bit integer).
public long 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.