SerenityJS
    Preparing search index...

    Class CompoundTag<T>

    Type Parameters

    • T

    Hierarchy (View Summary)

    • Tag<GenericCompound<T>>
      • CompoundTag
    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: Compound = TagType.Compound

    The nbt tag type of the data type.

    Methods

    • Type Parameters

      • K extends Tag<unknown>

      Parameters

      • name: string

      Returns K

    • Parameters

      • stream: BinaryStream
      • varint: boolean = false

      Returns string

    • Write a nbt tag to a binary stream.

      Type Parameters

      • T

      Parameters

      • stream: BinaryStream

        The binary stream to write to.

      • value: CompoundTag<T>

        The value of the tag.

      • varint: boolean = false

        Whether to write the tag as a varint.

      • properties: Partial<WritingProperties> = ...

      Returns void

    • Parameters

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

      Returns void