Class NbtLongArray
Namespace: Void.Minecraft.Nbt.Tags
Assembly: Void.Minecraft.dll
Represents an NBT signed-long-array tag.
public record NbtLongArray : NbtTag, IEquatable<NbtTag>, IEquatable<NbtLongArray>Inheritance
object ← NbtTag ← NbtLongArray
Implements
IEquatable<NbtTag>, IEquatable<NbtLongArray>
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
NbtLongArray(long[])
Represents an NBT signed-long-array tag.
public NbtLongArray(long[] Data)Parameters
Data long[]
The array retained by the tag.
Properties
Data
The array retained by the tag.
public long[] Data { get; init; }Property Value
long[]
Methods
ToString()
Returns this long array tag serialized as stringified named binary tag (SNBT).
public override string ToString()Returns
The SNBT representation of the current
Operators
implicit operator NbtLongArray(LongArrayTag)
Converts a SharpNBT long-array tag while preserving its name and data.
public static implicit operator NbtLongArray(LongArrayTag tag)Parameters
tag LongArrayTag
The source tag.
Returns
The converted tag.
implicit operator LongArrayTag(NbtLongArray)
Converts to a SharpNBT long-array tag while preserving the name and data.
public static implicit operator LongArrayTag(NbtLongArray tag)Parameters
tag NbtLongArray
The source tag.
Returns
The converted tag.