Script API - v1.21.90.25
    Preparing search index...

    Class Vector2Builder

    Vector2 wrapper class which can be used as a Vector2 for APIs on @minecraft/server which require a Vector2.

    Implements

    Index

    Constructors

    Properties

    x y

    Methods

    Constructors

    Properties

    x: number

    X component of the two-dimensional vector.

    y: number

    Y component of the two-dimensional vector.

    Methods

    • Returns a string representation of an object.

      Parameters

      • Optionaloptions: { decimals?: number; delimiter?: string }

      Returns string