Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FoodEatenFunction

Callable

  • FoodEatenFunction(food: number, ratio: number, player: number): void
  • Function used in the "FoodEaten" callback. You can use Entity.getCarriedItem to get info about food item

    Parameters

    • food: number

      food amount produced by eaten food

    • ratio: number

      saturation ratio produced by food

    • player: number

      player entity uID

    Returns void

Generated using TypeDoc