Skip to content

Class NbtIntArray

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

Represents an NBT signed-integer-array tag.

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

Inheritance

objectNbtTagNbtIntArray

Implements

IEquatable<NbtTag>, IEquatable<NbtIntArray>

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

NbtIntArray(int[])

Represents an NBT signed-integer-array tag.

public NbtIntArray(int[] Data)

Parameters

Data int[]

The array retained by the tag.

Properties

Data

The array retained by the tag.

public int[] Data { get; init; }

Property Value

int[]

Methods

ToString()

Serializes this tag as SNBT.

public override string ToString()

Returns

string

The SNBT representation.

Operators

implicit operator NbtIntArray(IntArrayTag)

Converts a SharpNBT integer-array tag while preserving its name and data.

public static implicit operator NbtIntArray(IntArrayTag tag)

Parameters

tag IntArrayTag

The source tag.

Returns

NbtIntArray

The converted tag.

implicit operator IntArrayTag(NbtIntArray)

Converts to a SharpNBT integer-array tag while preserving the name and data.

public static implicit operator IntArrayTag(NbtIntArray tag)

Parameters

tag NbtIntArray

The source tag.

Returns

IntArrayTag

The converted tag.