Table of Contents

Class NbtByte

Namespace
fNbt
Assembly
fNbt.dll

A tag containing a single byte.

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

Constructors

NbtByte()

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

public NbtByte()

NbtByte(byte)

Creates an unnamed NbtByte tag with the given value.

public NbtByte(byte value)

Parameters

value byte

Value to assign to this tag.

NbtByte(string?)

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

public NbtByte(string? tagName)

Parameters

tagName string

Name to assign to this tag. May be null.

NbtByte(string?, byte)

Creates an NbtByte tag with the given name and value.

public NbtByte(string? tagName, byte value)

Parameters

tagName string

Name to assign to this tag. May be null.

value byte

Value to assign to this tag.

NbtByte(NbtByte)

Creates a copy of given NbtByte tag.

public NbtByte(NbtByte other)

Parameters

other NbtByte

Tag to copy. May not be null.

Exceptions

ArgumentNullException

other is null.

Properties

TagType

Type of this tag (Byte).

public override NbtTagType TagType { get; }

Property Value

NbtTagType

Value

Value/payload of this tag (a single byte).

public byte Value { get; set; }

Property Value

byte

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.