Interface PlayerExperience

Interface used to manipulate player's experience.

interface PlayerExperience {
    add(exp: number): void;
    get(): number;
    set(exp: number): void;
}

Methods

Methods

  • Adds specified amount of experience to the current value.

    Parameters

    • exp: number

      amount to be added

    Returns void

  • Returns number

    Player's current experience.

  • Sets player's experience.

    Parameters

    • exp: number

      experience value to be set

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.