Serializable
, Comparable<EntityPotionEffectEvent.Cause>
public static enum EntityPotionEffectEvent.Cause extends Enum<EntityPotionEffectEvent.Cause>
Enum Constant | Description |
---|---|
AREA_EFFECT_CLOUD |
When the entity stands inside an area effect cloud.
|
ARROW |
When the entity is hit by an spectral or tipped arrow.
|
ATTACK |
When the entity is inflicted with a potion effect due to an entity
attack (e.g.
|
BEACON |
When beacon effects get applied due to the entity being nearby.
|
COMMAND |
When a potion effect is changed due to the /effect command.
|
CONDUIT |
When the entity gets the effect from a conduit.
|
CONVERSION |
When a conversion from a villager zombie to a villager is started or
finished.
|
DEATH |
When all effects are removed due to death (Note: This is called on
respawn, so it's player only!)
|
DOLPHIN |
When the entity gets the effect from a dolphin.
|
EXPIRATION |
When the effect was removed due to expiration.
|
FOOD |
When an effect is inflicted due to food (e.g.
|
ILLUSION |
When an illusion illager makes himself disappear.
|
MILK |
When all effects are removed due to a bucket of milk.
|
PLUGIN |
When a potion effect is modified through the plugin methods.
|
POTION_DRINK |
When the entity drinks a potion.
|
POTION_SPLASH |
When the entity is inflicted with an effect due to a splash potion.
|
SPIDER_SPAWN |
When a spider gets effects when spawning on hard difficulty.
|
TOTEM |
When the entity gets effects from a totem item saving it's life.
|
TURTLE_HELMET |
When the entity gets water breathing by wearing a turtle helmet.
|
UNKNOWN |
When the Cause is missing.
|
VILLAGER_TRADE |
When a villager gets regeneration after a trade.
|
Modifier and Type | Method | Description |
---|---|---|
static EntityPotionEffectEvent.Cause |
valueOf(String name) |
Returns 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.
|
public static final EntityPotionEffectEvent.Cause AREA_EFFECT_CLOUD
public static final EntityPotionEffectEvent.Cause ARROW
public static final EntityPotionEffectEvent.Cause ATTACK
public static final EntityPotionEffectEvent.Cause BEACON
public static final EntityPotionEffectEvent.Cause COMMAND
public static final EntityPotionEffectEvent.Cause CONDUIT
public static final EntityPotionEffectEvent.Cause CONVERSION
public static final EntityPotionEffectEvent.Cause DEATH
public static final EntityPotionEffectEvent.Cause DOLPHIN
public static final EntityPotionEffectEvent.Cause EXPIRATION
public static final EntityPotionEffectEvent.Cause FOOD
public static final EntityPotionEffectEvent.Cause ILLUSION
public static final EntityPotionEffectEvent.Cause MILK
public static final EntityPotionEffectEvent.Cause PLUGIN
public static final EntityPotionEffectEvent.Cause POTION_DRINK
public static final EntityPotionEffectEvent.Cause POTION_SPLASH
public static final EntityPotionEffectEvent.Cause SPIDER_SPAWN
public static final EntityPotionEffectEvent.Cause TOTEM
public static final EntityPotionEffectEvent.Cause TURTLE_HELMET
public static final EntityPotionEffectEvent.Cause UNKNOWN
public static final EntityPotionEffectEvent.Cause VILLAGER_TRADE
public static EntityPotionEffectEvent.Cause[] values()
for (EntityPotionEffectEvent.Cause c : EntityPotionEffectEvent.Cause.values()) System.out.println(c);
public static EntityPotionEffectEvent.Cause valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.