Skip to content

Class NbtByte

Namespace: Void.Minecraft.Nbt.Tags
Assembly: Void.Minecraft.dll

public record NbtByte : NbtTag, IEquatable<NbtTag>, IEquatable<NbtByte>

Inheritance

objectNbtTagNbtByte

Implements

IEquatable<NbtTag>, IEquatable<NbtByte>

Inherited Members

NbtTag.Name, NbtTag.Type, NbtTag.AsStream(NbtFormatOptions, bool), NbtTag.AsJsonNode(), NbtTag.ToString(), NbtTag.ToSnbt(), NbtTag.Parse(string), NbtTag.Parse(ReadOnlyMemory<byte>, out NbtTag, bool, NbtFormatOptions), NbtTag.Parse<T>(ReadOnlyMemory<byte>, out T, bool, NbtFormatOptions), NbtTag.ReadFrom<TBuffer>(ref TBuffer, bool), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

NbtByte(byte)

public NbtByte(byte Value = 0)

Parameters

Value byte

NbtByte(bool)

public NbtByte(bool value)

Parameters

value bool

Properties

IsBool

public bool IsBool { get; }

Property Value

bool

IsFalse

public bool IsFalse { get; }

Property Value

bool

IsTrue

public bool IsTrue { get; }

Property Value

bool

Value

public byte Value { get; init; }

Property Value

byte

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator NbtByte(ByteTag)

public static implicit operator NbtByte(ByteTag tag)

Parameters

tag ByteTag

Returns

NbtByte

implicit operator ByteTag(NbtByte)

public static implicit operator ByteTag(NbtByte tag)

Parameters

tag NbtByte

Returns

ByteTag