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

Constructors

Methods

  • Removes all the tags from the compound tags.

    Returns void

  • Parameters

    • index: number

    Returns number

    NBT tag of byte type by it's index.

  • Parameters

    • index: number

    Returns CompoundTag

    NBT tag of compound type by it's index. Note that a copy of existing compound tag is created so you cannot edit it directly. Use setCompoundTag method to apply changes or use getCompoundTagNoClone to edit it directly.

  • Parameters

    • index: number

    Returns CompoundTag

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

  • Parameters

    • index: number

    Returns number

    NBT tag of double type by it's index.

  • Parameters

    • index: number

    Returns number

    NBT tag of float type by it's index.

  • Parameters

    • index: number

    Returns number

    NBT tag of 32-bit integer type by it's index.

  • Parameters

    • index: number

    Returns number

    NBT tag of 64-bit integer type by it's index.

  • Parameters

    • index: number

    Returns ListTag

    NBT tag of list type by it's index. Note that a copy of existing list tag is created so you cannot edit it directly. Use setCompoundTag method to apply changes or use getListTagNoClone to edit it directly.

  • Parameters

    • index: number

    Returns ListTag

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

  • Parameters

    • index: number

    Returns number

    NBT tag of short type by it's index.

  • Parameters

    • index: number

    Returns string

    NBT tag of string type by it's index.

  • Parameters

    • index: number

    Returns number

    Value type for the specified index. One of the ENbtDataType constants.

  • Returns number

    Count of the tags in the list tag.

  • Puts value of byte type into list tag.

    Parameters

    • index: number
    • value: number

    Returns void

  • Puts value of compound type into list tag.

    Parameters

    Returns void

  • Puts value of double type into list tag.

    Parameters

    • index: number
    • value: number

    Returns void

  • Puts value of float type into list tag.

    Parameters

    • index: number
    • value: number

    Returns void

  • Puts value of 32-bit integer type into list tag.

    Parameters

    • index: number
    • value: number

    Returns void

  • Puts value of 64-bit integer type into list tag.

    Parameters

    • index: number
    • value: number

    Returns void

  • Puts value of list type into list tag.

    Parameters

    Returns void

  • Puts value of short type into list tag.

    Parameters

    • index: number
    • value: number

    Returns void

  • Puts value of string type into list tag.

    Parameters

    • index: number
    • value: string

    Returns void

  • Converts list tag to JavaScript object for easier reading.

    Returns any[]

    Valid JavaScript representation of list tag.

    2.0.5b45

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.