Options
All
  • Public
  • Public/Protected
  • All
Menu

List tags represent NBT array-like indexed data structure. Its values may be of any type, so check the type before calling the appropriate getter

Hierarchy

  • ListTag

Index

Constructors

Methods

  • clear(): void
  • getByte(index: number): number
  • Parameters

    • index: number

    Returns CompoundTag

    directly editable NBT tag of byte type by its index. Don't save reference for future usage since they get destroyed when the parent object is destroyed

  • getDouble(index: number): number
  • getFloat(index: number): number
  • getInt(index: number): number
  • Parameters

    • index: number

    Returns number

    NBT tag of 32-bit integer type by its index

  • getInt64(index: number): number
  • Parameters

    • index: number

    Returns number

    NBT tag of 64-bit integer type by its index

  • getListTagNoClone(index: number): ListTag
  • Parameters

    • index: number

    Returns ListTag

    directly editable NBT tag of byte type by its index. Don't save reference for future usage since they get destroyed when the parent object is destroyed

  • getShort(index: number): number
  • getString(index: number): string
  • getValueType(index: number): number
  • length(): number
  • putByte(index: number, value: number): void
  • Puts value of byte type into list tag

    Parameters

    • index: number
    • value: number

    Returns void

  • putCompoundTag(index: number, value: CompoundTag): void
  • putDouble(index: number, value: number): void
  • Puts value of double type into list tag

    Parameters

    • index: number
    • value: number

    Returns void

  • putFloat(index: number, value: number): void
  • Puts value of float type into list tag

    Parameters

    • index: number
    • value: number

    Returns void

  • putInt(index: number, value: number): void
  • Puts value of 32-bit integer type into list tag

    Parameters

    • index: number
    • value: number

    Returns void

  • putInt64(index: number, value: number): void
  • Puts value of 64-bit integer type into list tag

    Parameters

    • index: number
    • value: number

    Returns void

  • putListTag(index: number, value: ListTag): void
  • putShort(index: number, value: number): void
  • Puts value of short type into list tag

    Parameters

    • index: number
    • value: number

    Returns void

  • putString(index: number, value: string): void
  • Puts value of string type into list tag

    Parameters

    • index: number
    • value: string

    Returns void

  • toScriptable(): any[]
  • Converts list tag to JavaScript object for easier reading

    Returns any[]

    valid JavaScript representation of list tag

Generated using TypeDoc