Class NbtLong
Namespace: Void.Minecraft.Nbt.Tags
Assembly: Void.Minecraft.dll
Represents a signed 64-bit integer NBT tag.
public record NbtLong : NbtTag, IEquatable<NbtTag>, IEquatable<NbtLong>Inheritance
Implements
IEquatable<NbtTag>, IEquatable<NbtLong>
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
NbtLong(long)
Represents a signed 64-bit integer NBT tag.
public NbtLong(long Value)Parameters
Value long
The numeric value.
Properties
Value
The numeric value.
public long Value { get; init; }Property Value
Methods
ToString()
Serializes this tag as SNBT.
public override string ToString()Returns
The SNBT representation.
Operators
implicit operator NbtLong(LongTag)
Converts a SharpNBT long tag while preserving its name and value.
public static implicit operator NbtLong(LongTag tag)Parameters
tag LongTag
The source tag.
Returns
The converted tag.
implicit operator LongTag(NbtLong)
Converts to a SharpNBT long tag while preserving the name and value.
public static implicit operator LongTag(NbtLong tag)Parameters
tag NbtLong
The source tag.
Returns
The converted tag.