Table of Contents

Class NbtInt

Namespace
fNbt
Assembly
fNbt.dll

A tag containing a single signed 32-bit integer.

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

Constructors

NbtInt()

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

public NbtInt()

NbtInt(int)

Creates an unnamed NbtInt tag with the given value.

public NbtInt(int value)

Parameters

value int

Value to assign to this tag.

NbtInt(string?)

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

public NbtInt(string? tagName)

Parameters

tagName string

Name to assign to this tag. May be null.

NbtInt(string?, int)

Creates an NbtInt tag with the given name and value.

public NbtInt(string? tagName, int value)

Parameters

tagName string

Name to assign to this tag. May be null.

value int

Value to assign to this tag.

NbtInt(NbtInt)

Creates a copy of given NbtInt tag.

public NbtInt(NbtInt other)

Parameters

other NbtInt

Tag to copy. May not be null.

Exceptions

ArgumentNullException

other is null.

Properties

TagType

Type of this tag (Int).

public override NbtTagType TagType { get; }

Property Value

NbtTagType

Value

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

public int Value { get; set; }

Property Value

int

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.