Table of Contents

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

value short

Value 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

tagName string

Name 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

tagName string

Name to assign to this tag. May be null.

value short

Value to assign to this tag.

NbtShort(NbtShort)

Creates a copy of given NbtShort tag.

public NbtShort(NbtShort other)

Parameters

other NbtShort

Tag to copy. May not be null.

Exceptions

ArgumentNullException

other is null.

Properties

TagType

Type of this tag (Short).

public override NbtTagType TagType { get; }

Property Value

NbtTagType

Value

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

public short Value { get; set; }

Property Value

short

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.