Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Variant

A class to represent a Variant Packet

Hierarchy

  • Variant

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new Variant

    Parameters

    • options: VariantOptions

      The options for the Variant

    • args: (string | number | number[])[]

      The arguments for the Variant

    Returns Variant

Properties

args

args: (string | number | number[])[]

The arguments for the Variant

options

The options for the Variant

Methods

parse

  • parse(): Buffer
  • Parse the Variant Packet, convert it to bytes.

    Returns Buffer

Static from

  • Creates a new Variant Packet

    Parameters

    • options: string | VariantOptions

      Options for the variant packet

    • Rest ...args: (string | number | number[])[]

      Arguments of the Variant packet

    Returns Variant

Generated using TypeDoc