Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FoodEatenFunction

Function used in the "FoodEaten" callback. You can use Entity.getCarriedItem to get info about food item

Hierarchy

  • FoodEatenFunction

Callable

  • __call(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