Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fkm_nbt/nbt/NBTList.ts>NBTList

Node: https://www.npmjs.com/package/fkm-nbt Deno: https://deno.land/x/fkm_nbt
Latest
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
type: number
private
value: NBTElement[]

Methods

acceptWriter(visitor: NBTVisitor): void
add(element: NBTElement): void
asString(): string
clear(): void
get(i: number): NBTElement
getDouble(i: number): number
getFloat(i: number): number
getHeldType(): number
getInt(i: number): number
getIntList(i: number): number[]
getList(i: number): NBTList
getLongList(i: number): bigint[]
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

Static Properties

deprecated
reader