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