SerenityJS
    Preparing search index...

    Class ListTag<T>

    Type Parameters

    Hierarchy (View Summary)

    • Tag<GenericList<T>>
      • ListTag
    Index

    Constructors

    Properties

    listType: TagType
    name: string = ""

    The name of the tag.

    type: TagType = ...

    The nbt tag type of the data type.

    value: GenericList<T> = []

    The value of the tag.

    type: List = TagType.List

    The nbt tag type of the data type.

    Methods

    • Parameters

      • buffer: Buffer
      • varint: boolean = false

      Returns Tag

    • Read a nbt tag from a binary stream.

      Type Parameters

      • T extends Tag<unknown>

      Parameters

      • stream: BinaryStream

        The binary stream to read from.

      • varint: boolean

        Whether to read the tag as a varint.

      • properties: Partial<ReadingProperties> = ...

      Returns ListTag<T>

    • Parameters

      • stream: BinaryStream
      • varint: boolean = false

      Returns string

    • Write a nbt tag to a binary stream.

      Type Parameters

      • T extends Tag<unknown>

      Parameters

      • stream: BinaryStream

        The binary stream to write to.

      • value: ListTag<T>

        The value of the tag.

      • varint: boolean

        Whether to write the tag as a varint.

      • properties: Partial<ReadingProperties> = ...

      Returns void

    • Parameters

      • value: string
      • stream: BinaryStream
      • varint: boolean = false

      Returns void