Package ch.njol.skript.util
Enum Class PotionDataUtils
- All Implemented Interfaces:
Serializable
,Comparable<PotionDataUtils>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<org.bukkit.potion.PotionEffect> getPotionEffects
(org.bukkit.potion.PotionData potionData) ConvertPotionData
to aPotionEffect
static PotionDataUtils
Returns the enum constant of this class with the specified name.static PotionDataUtils[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIRE_RESISTANCE
-
FIRE_RESISTANCE_LONG
-
HARMING
-
HARMING_STRONG
-
HEALING
-
HEALING_STRONG
-
INVISIBILITY
-
INVISIBILITY_LONG
-
LEAPING
-
LEAPING_LONG
-
LEAPING_STRONG
-
LUCK
-
NIGHT_VISION
-
NIGHT_VISION_LONG
-
POISON
-
POISON_LONG
-
POISON_STRONG
-
REGENERATION
-
REGENERATION_LONG
-
REGENERATION_STRONG
-
SLOW_FALLING
-
SLOW_FALLING_LONG
-
SLOWNESS
-
SLOWNESS_LONG
-
SLOWNESS_STRONG
-
SWIFTNESS
-
SWIFTNESS_LONG
-
SWIFTNESS_STRONG
-
STRENGTH
-
STRENGTH_LONG
-
STRENGTH_STRONG
-
TURTLE_MASTER
-
TURTLE_MASTER_LONG
-
TURTLE_MASTER_STRONG
-
WATER_BREATHING
-
WATER_BREATHING_LONG
-
WEAKNESS
-
WEAKNESS_LONG
-
-
Method Details
-
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
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
-
getPotionEffects
public static List<org.bukkit.potion.PotionEffect> getPotionEffects(org.bukkit.potion.PotionData potionData) ConvertPotionData
to aPotionEffect
- Parameters:
potionData
- PotionData to convert- Returns:
- List of PotionEffects from the data
-