class NBTCompound
extends NBTElement
import { NBTCompound } from "https://deno.land/x/fkm_nbt@v0.1.0/nbt/NBTCompound.ts";
Constructors
new
NBTCompound(entries?: Record<string, NBTElement> | Map<string, NBTElement>)Properties
private
entries: Record<string, NBTElement>Methods
acceptWriter(visitor: NBTVisitor): void
asString(): string
contains(key: string, type?: number): boolean
get(key: string): NBTElement
getBoolean(key: string): boolean
getByte(key: string): number
getByteArray(key: string): number[]
getCompound(key: string): NBTCompound
getDouble(key: string): number
getElementType(key: string): number
getFloat(key: string): number
getInt(key: string): number
getIntArray(key: string): number[]
getKeys(): string[]
getLong(key: string): bigint
getLongArray(key: string): bigint[]
getShort(key: string): number
getString(key: string): string
getType(): number
put(key: string, element: NBTElement): void
putBoolean(key: string, value: boolean): void
putByte(key: string, value: number): void
putByteArray(key: string, value: number[])
putDouble(key: string, value: number): void
putFloat(key: string, value: number): void
putInt(key: string, value: number): void
putIntArray(key: string, value: number[])
putLong(key: string, value: bigint): void
putLongArray(key: string, value: bigint[])
putShort(key: string, value: number): void
putString(key: string, value: string): void
remove(key: string): void
write(writer: BinaryWriter): void