class NBTList
extends NBTElement
import { NBTList } from "https://deno.land/x/fkm_nbt@v0.1.0/nbt/NBTList.ts";
Constructors
new
NBTList(value?: NBTElement[], type?: number)Properties
private
value: NBTElement[]Methods
acceptWriter(visitor: NBTVisitor): void
add(element: NBTElement): void
asString(): string
clear(): void
get(i: number): NBTElement
getCompound(i: number): NBTCompound
getDouble(i: number): number
getFloat(i: number): number
getHeldType(): number
getInt(i: number): number
getIntList(i: number): number[]
getLongList(i: number): bigint[]
getNBTType(): NBTType<NBTList>
getShort(i: number): number
getString(i: number): string
getType(): number
remove(i: number): NBTElement
set(i: number, element: NBTElement): NBTElement
size(): number
write(writer: BinaryWriter): void