Package org.bukkit.event.entity
Enum EntityPotionEffectEvent.Cause
- All Implemented Interfaces:
- Serializable,- Comparable<EntityPotionEffectEvent.Cause>,- java.lang.constant.Constable
- Enclosing class:
- EntityPotionEffectEvent
An enum to specify the cause why an effect was changed.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionWhen the entity stands inside an area effect cloud.When the entity is hit by an spectral or tipped arrow.When the entity is inflicted with a potion effect due to an entity attack (e.g.When an entity gets the effect from an axolotl.When beacon effects get applied due to the entity being nearby.When a potion effect is changed due to the /effect command.When the entity gets the effect from a conduit.When a conversion from a villager zombie to a villager is started or finished.When all effects are removed due to death (Note: This is called on respawn, so it's player only!)When the entity gets the effect from a dolphin.When the effect was removed due to expiration.When an effect is inflicted due to food (e.g.When an illusion illager makes himself disappear.When all effects are removed due to a bucket of milk.When a player gets bad omen after killing a patrol captain.When a potion effect is modified through the plugin methods.When the entity drinks a potion.When the entity is inflicted with an effect due to a splash potion.When a spider gets effects when spawning on hard difficulty.When the entity gets effects from a totem item saving it's life.When the entity gets water breathing by wearing a turtle helmet.When the Cause is missing.When a villager gets regeneration after a trade.When an entity comes in contact with a wither rose.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static EntityPotionEffectEvent.Cause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
AREA_EFFECT_CLOUDWhen the entity stands inside an area effect cloud.
- 
ARROWWhen the entity is hit by an spectral or tipped arrow.
- 
ATTACKWhen the entity is inflicted with a potion effect due to an entity attack (e.g. a cave spider or a shulker bullet).
- 
AXOLOTLWhen an entity gets the effect from an axolotl.
- 
BEACONWhen beacon effects get applied due to the entity being nearby.
- 
COMMANDWhen a potion effect is changed due to the /effect command.
- 
CONDUITWhen the entity gets the effect from a conduit.
- 
CONVERSIONWhen a conversion from a villager zombie to a villager is started or finished.
- 
DEATHWhen all effects are removed due to death (Note: This is called on respawn, so it's player only!)
- 
DOLPHINWhen the entity gets the effect from a dolphin.
- 
EXPIRATIONWhen the effect was removed due to expiration.
- 
FOODWhen an effect is inflicted due to food (e.g. when a player eats or a cookie is given to a parrot).
- 
ILLUSIONWhen an illusion illager makes himself disappear.
- 
MILKWhen all effects are removed due to a bucket of milk.
- 
PATROL_CAPTAINWhen a player gets bad omen after killing a patrol captain.
- 
PLUGINWhen a potion effect is modified through the plugin methods.
- 
POTION_DRINKWhen the entity drinks a potion.
- 
POTION_SPLASHWhen the entity is inflicted with an effect due to a splash potion.
- 
SPIDER_SPAWNWhen a spider gets effects when spawning on hard difficulty.
- 
TOTEMWhen the entity gets effects from a totem item saving it's life.
- 
TURTLE_HELMETWhen the entity gets water breathing by wearing a turtle helmet.
- 
UNKNOWNWhen the Cause is missing.
- 
VILLAGER_TRADEWhen a villager gets regeneration after a trade.
- 
WITHER_ROSEWhen an entity comes in contact with a wither rose.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-