SerenityJS
    Preparing search index...
    Index

    Constructors

    Accessors

    Methods

    • Get the current geometry of the skin.

      Returns Record<string, unknown>

      The geometry of the skin.

    • Set the geometry of the skin.

      Parameters

      • geometry: string | Record<string, unknown>

        The geometry to set, either as a record or a string.

      Returns void

    • Sets the serialized skin.

      Parameters

      • skin: SerializedSkin

        The serialized skin to set.

      Returns void

    • Set the skin image from a bitmap or buffer.

      Parameters

      • image: string | Buffer<ArrayBufferLike> | Bitmap

        The skin image to set, either as a bitmap or buffer.

      Returns Promise<void>

      When setting a skin, you must also set the geometry, otherwise the skin will not be displayed correctly.