Enum Class 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 ConstantsEnum ConstantDescriptionDeprecated, 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 TypeMethodDescriptionstatic PotionEffectTypeCategoryDeprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.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.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-
PotionEffectType.Category