Skip to content

NbtList

Namespace Mc.Scripting.Nbt · Kind class (sealed)

public sealed class NbtList : NbtTag, ICollection<NbtTag>, IEnumerable, IEnumerable<NbtTag>, IList<NbtTag>

A list of tags of one type.

Member Description
NbtList() Creates an empty list.
NbtList(IEnumerable<NbtTag> items) Creates a list with items.
public NbtList()

Creates an empty list.

public NbtList(IEnumerable<NbtTag> items)

Creates a list with items.

Parameters

Name Type Description
items IEnumerable<NbtTag> The items (all of one type).
Member Description
int Count { get; }
NbtType ElementType { get; } The type of the items (End while the list is empty).
bool IsReadOnly { get; }
override NbtType Type { get; }
public int Count { get; }
public NbtType ElementType { get; }

The type of the items (End while the list is empty).

public bool IsReadOnly { get; }
public override NbtType Type { get; }
Member Description
NbtTag this[int index] { get; set; }
public NbtTag this[int index] { get; set; }

Parameters

Name Type Description
index int
Member Description
void Add(NbtTag item)
void Clear()
override NbtTag Clone()
bool Contains(NbtTag item)
void CopyTo(NbtTag[] array, int arrayIndex)
IEnumerator<NbtTag> GetEnumerator()
int IndexOf(NbtTag item)
void Insert(int index, NbtTag item)
bool Remove(NbtTag item)
void RemoveAt(int index)
public void Add(NbtTag item)

Parameters

Name Type Description
item NbtTag
public void Clear()
public override NbtTag Clone()

Returns NbtTag

public bool Contains(NbtTag item)

Parameters

Name Type Description
item NbtTag

Returns bool

public void CopyTo(NbtTag[] array, int arrayIndex)

Parameters

Name Type Description
array NbtTag[]
arrayIndex int
public IEnumerator<NbtTag> GetEnumerator()

Returns IEnumerator<NbtTag>

public int IndexOf(NbtTag item)

Parameters

Name Type Description
item NbtTag

Returns int

public void Insert(int index, NbtTag item)

Parameters

Name Type Description
index int
item NbtTag
public bool Remove(NbtTag item)

Parameters

Name Type Description
item NbtTag

Returns bool

public void RemoveAt(int index)

Parameters

Name Type Description
index int

NbtTag · NbtType