Enum Class PotionEffectTypeCategory

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

@Deprecated(since="26.3", forRemoval=true) public enum PotionEffectTypeCategory extends Enum<PotionEffectTypeCategory>
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a category of PotionEffectType and its effect on an entity.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Beneficial effects that positively impact an entity, such as Regeneration, Absorption, or Fire Resistance.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Harmful effects that negatively impact an entity, such as Blindness, Wither, or Levitation.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Neutral effects that have neither a positive nor negative effect on an entity, such as Glowing or Bad Omen.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the enum constant of this class with the specified name.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BENEFICIAL

      public static final PotionEffectTypeCategory BENEFICIAL
      Deprecated, for removal: This API element is subject to removal in a future version.
      Beneficial effects that positively impact an entity, such as Regeneration, Absorption, or Fire Resistance.
    • HARMFUL

      public static final PotionEffectTypeCategory HARMFUL
      Deprecated, for removal: This API element is subject to removal in a future version.
      Harmful effects that negatively impact an entity, such as Blindness, Wither, or Levitation.
    • NEUTRAL

      public static final PotionEffectTypeCategory NEUTRAL
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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