Interface PlayerLevel

Interface used to manipulate player's level.

Consider using Player.getLevel, Player.setLevel, Player.addLevel.

interface PlayerLevel {
    add(level: number): void;
    get(): number;
    set(level: number): void;
}

Methods

Methods

  • Adds specified amount of level to the current value.

    Parameters

    • level: number

      amount to be added

    Returns void

  • Returns number

    Player's current level.

  • Sets player's level.

    Parameters

    • level: number

      level value to be set

    Returns void

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