Interface PlayerHunger

Interface used to manipulate player's hunger.

Consider using Player.getHunger and Player.setHunger.

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

Methods

Methods

  • Returns number

    Player's current hunger.

  • Sets player's hunger.

    Parameters

    • value: number

      hunger value to be set

    Returns void

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