classSource
public final class NbtList
    implements NbtTag
Implemented interfaces
NbtTag

Constructors

public NbtList(byte elementId)
Parameters
elementIdbyte

Methods

public void add(NbtTag tag)
Parameters
tagNbtTag
public NbtList copy()
Deep copy, tags that can't change anyway just return themselves
Returns
NbtList

Implements NbtTag.copy(), description copied from there

public byte elementId()
Returns
byte
public List<NbtTag> elements()
Returns
List<NbtTag>
public byte id()
Returns
byte

Implements NbtTag.id()

public int size()
Returns
int

Used by

Methods of other types that accept or return NbtList.