Interface PlayerEatFunction

Function used in the "LocalPlayerEat" and "ServerPlayerEat" callback.

  • You can use Entity.getCarriedItem to get info about food item.

    Parameters

    • playerUid: number

      player entity UID

    • food: number

      food amount produced by eaten food

    • ratio: number

      saturation ratio produced by food

    Returns void

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