public enum EffectType extends java.lang.Enum<EffectType>
PotionEffectType
s.Enum Constant and Description |
---|
ABSORBPTION |
BLINDNESS |
CONFUSION |
DAMAGE_RESISTANCE |
FAST_DIGGING |
FIRE_RESISTANCE |
GLOWING |
HARM |
HEAL |
HUNGER |
INCREASE_DAMAGE |
INVISIBILITY |
JUMP |
LEVITATION |
NIGHT_VISION |
POISON |
REGENERATION |
SATURATION |
SLOW |
SLOW_DIGGING |
SPEED |
WATER_BREATHING |
WEAKNESS |
WITHER |
Modifier and Type | Field and Description |
---|---|
private org.bukkit.potion.PotionEffectType |
_bukkitType
The Bukkit
PotionEffectType corresponding to the selected EffectType. |
Modifier and Type | Method and Description |
---|---|
org.bukkit.potion.PotionEffectType |
getBukkitType()
Returns the Bukkit
PotionEffectType . |
static EffectType |
of(org.bukkit.potion.PotionEffectType potionEffectType)
Returns the EffectType corresponding to a given
PotionEffectType . |
static EffectType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EffectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EffectType ABSORBPTION
public static final EffectType BLINDNESS
public static final EffectType CONFUSION
public static final EffectType DAMAGE_RESISTANCE
public static final EffectType FAST_DIGGING
public static final EffectType FIRE_RESISTANCE
public static final EffectType GLOWING
public static final EffectType HARM
public static final EffectType HEAL
public static final EffectType HUNGER
public static final EffectType INCREASE_DAMAGE
public static final EffectType INVISIBILITY
public static final EffectType JUMP
public static final EffectType LEVITATION
public static final EffectType NIGHT_VISION
public static final EffectType POISON
public static final EffectType REGENERATION
public static final EffectType SATURATION
public static final EffectType SLOW_DIGGING
public static final EffectType SLOW
public static final EffectType SPEED
public static final EffectType WATER_BREATHING
public static final EffectType WEAKNESS
public static final EffectType WITHER
private final org.bukkit.potion.PotionEffectType _bukkitType
PotionEffectType
corresponding to the selected EffectType.public static EffectType[] values()
for (EffectType c : EffectType.values()) System.out.println(c);
public static EffectType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic org.bukkit.potion.PotionEffectType getBukkitType()
PotionEffectType
.PotionEffectType
.public static EffectType of(org.bukkit.potion.PotionEffectType potionEffectType)
PotionEffectType
. Essentially a valueOf()
method for a non-String.potionEffectType
- the PotionEffectType
.