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

Setters in PotionEffect

XMLWordPrintable

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

      Little suggestion regarding PotionEffects.

       

      There are lots of getters for this class (getType, getDuration, getAmplifier, getColor, hasParticles and isAmbient). Although (and that's quite annoying), there aren't any setters; Here's a list of useful setters (actually they're only the reverse of the getters, so they're self-explanatory) :

      • setType(PotionEffectType type)
      • setDuration(int ticks)
      • setAmplifier(int amplifier)
      • setParticles(boolean hasParticles)
      • setAmbient(boolean isAmbient)
      • setColor(Color color)

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

              Created:
              Updated:
              Resolved: