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

FoodLevelChangeEvent add getItem methods

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Version:
      1.14+
    • Guidelines Read:
      Yes

      Description

      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

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: