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
valuebyteValue 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
tagNamestringName 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
NbtByte(NbtByte)
Creates a copy of given NbtByte tag.
public NbtByte(NbtByte other)
Parameters
otherNbtByteTag to copy. May not be
null.
Exceptions
- ArgumentNullException
otherisnull.
Properties
TagType
Type of this tag (Byte).
public override NbtTagType TagType { get; }
Property Value
Value
Value/payload of this tag (a single byte).
public byte 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.