SerenityJS
    Preparing search index...

    Hierarchy (View Summary)

    • Tag<number>
      • DoubleTag
    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: Double = TagType.Double

    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

        The binary stream to read from.

      • varint: boolean

        Whether to read the tag as a varint.

      • properties: Partial<ReadingProperties> = ...

      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: DoubleTag

        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