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

Create accessors for player absorption hearts

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • n/a

    • 1.14.4
    • Yes

      Suggestion:
      Add a method to the HumanEntity interface to retrieve the amount of absorption hearts left on the human. This method would allow developers to track the amount left on the player.

      Implementation:
      The method can simply forward its call to EntityHuman#getAbsorptionHearts in the NMS code.

      Thoughts:
      I do not know how the absorption effect works on other entities like zombies, hence those entities would need to the same method too, moving the method from the HumanEntity interface to some parents of both Player and Zombies like LivingEntitiy.

            Unassigned Unassigned
            LynxPlay Bjarne Koll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: