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

Missing LivingEntity#getPotionEffect(PotionEffectType)

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None

      The LivingEntity interface is lacking a method to retrieve an active PotionEffect directly by its PotionEffectType. This is otherwise only achievable by matching the PotionEffectType of the PotionEffects returned by the LivingEntity#getActivePotionEffects method, which in inconvenient, and less efficient than getting the PotionEffect directly.

      Some applicable purposes of this is updating a player according to their active PotionEffects.

            Unassigned Unassigned
            Abstraction _
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: