SerenityJS
    Preparing search index...

    Class ByteArrayTag

    Hierarchy (View Summary)

    • Tag<number[]>
      • ByteArrayTag
    Index

    Constructors

    Properties

    name: string = ""

    The name of the tag.

    type: TagType = ...

    The nbt tag type of the data type.

    value: number[] = ...

    The value of the tag.

    type: ByteArray = TagType.ByteArray

    The nbt tag type of the data type.

    Methods

    • Parameters

      • buffer: Buffer
      • varint: boolean = false

      Returns Tag

    • Parameters

      • stream: BinaryStream
      • varint: boolean = false

      Returns string

    • Write a nbt tag to a binary stream.

      Parameters

      • stream: BinaryStream

        The binary stream to write to.

      • value: ByteArrayTag

        The value of the tag.

      • varint: boolean

        Whether to write the tag as a varint.

      • properties: Partial<WritingProperties> = ...

      Returns void

    • Parameters

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

      Returns void