Table of Contents

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

value long

Value 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

tagName string

Name 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

tagName string

Name to assign to this tag. May be null.

value long

Value to assign to this tag.

NbtLong(NbtLong)

Creates a copy of given NbtLong tag.

public NbtLong(NbtLong other)

Parameters

other NbtLong

Tag to copy. May not be null.

Exceptions

ArgumentNullException

other is null.

Properties

TagType

Type of this tag (Long).

public override NbtTagType TagType { get; }

Property Value

NbtTagType

Value

Value/payload of this tag (a single signed 64-bit integer).

public long Value { get; set; }

Property Value

long

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.