Enum Class PotionEffectTypeCategory

java.lang.Object
java.lang.Enum<PotionEffectTypeCategory>
org.bukkit.potion.PotionEffectTypeCategory
All Implemented Interfaces:
Serializable, Comparable<PotionEffectTypeCategory>, Constable

public enum PotionEffectTypeCategory extends Enum<PotionEffectTypeCategory>
Represents a category of PotionEffectType and its effect on an entity.
  • Enum Constant Details

    • BENEFICIAL

      public static final PotionEffectTypeCategory BENEFICIAL
      Beneficial effects that positively impact an entity, such as Regeneration, Absorption, or Fire Resistance.
    • HARMFUL

      public static final PotionEffectTypeCategory HARMFUL
      Harmful effects that negatively impact an entity, such as Blindness, Wither, or Levitation.
    • NEUTRAL

      public static final PotionEffectTypeCategory NEUTRAL
      Neutral effects that have neither a positive nor negative effect on an entity, such as Glowing or Bad Omen.
  • Method Details

    • values

      public static PotionEffectTypeCategory[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PotionEffectTypeCategory valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null