Interface PlayerHealth

Interface used to manipulate player's health.

Consider using Player.getHealth and Player.setHealth.

interface PlayerHealth {
    get(): number;
    set(value: number): void;
}

Methods

Methods

  • Returns number

    Player's current health.

  • Sets player's health.

    Parameters

    • value: number

      health value to be set

    Returns void

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