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
valueintValue 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
tagNamestringName 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
NbtInt(NbtInt)
Creates a copy of given NbtInt tag.
public NbtInt(NbtInt other)
Parameters
otherNbtIntTag to copy. May not be
null.
Exceptions
- ArgumentNullException
otherisnull.
Properties
TagType
Type of this tag (Int).
public override NbtTagType TagType { get; }
Property Value
Value
Value/payload of this tag (a single signed 32-bit integer).
public int 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.