Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5034

FoodLevelChangeEvent add getItem methods

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 1.14+
    • Yes

      I would like to suggest adding a method to the FoodLevelChangeEvent which would allow us to get the item which was consumed.

      Why I think this would be useful:

      • I think this would be handy in modifying the amount of hunger regeneration that happens when a player eats a piece of food, allowing plugin devs to further customize the mechanics of the game.

      I would use this in conjunction with adding custom food items to the game (using CustomModelData tags) and having each food items' hunger level be different.

      Thank you for reading

      ShaneBee

       

            Unassigned Unassigned
            ShaneBee Shane Bee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: