SerenityJS
    Preparing search index...

    Class Tag<T>

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string = ""

    The name of the tag.

    type: TagType = ...

    The nbt tag type of the data type.

    value: T = ...

    The value of the tag.

    type: TagType

    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.

      Parameters

      • _stream: BinaryStream
      • _varint: number | boolean = false
      • _properties: Partial<ReadingProperties> = ...

      Returns Tag

    • Parameters

      • stream: BinaryStream
      • varint: boolean = false

      Returns string

    • Write a nbt tag to a binary stream.

      Parameters

      • _stream: BinaryStream
      • _value: Tag
      • _varint: number | boolean = false
      • _properties: Partial<WritingProperties> = ...

      Returns void

    • Parameters

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

      Returns void