Interface FoodEatenFunction

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

    • playerUid: number

      player entity UID

    Returns void

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