public static interface ChangeEntityPotionEffectEvent.Gain extends ChangeEntityPotionEffectEvent
PotionEffect
is being added.ChangeEntityPotionEffectEvent.Expire, ChangeEntityPotionEffectEvent.Gain, ChangeEntityPotionEffectEvent.Remove
Modifier and Type | Method and Description |
---|---|
PotionEffect |
getOriginalPotionEffect()
Gets the original potion effect involved in this event.
|
void |
setPotionEffect(PotionEffect effect)
Sets the potion effect to be used in this event.
|
getCurrentEffects, getPotionEffect
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled
PotionEffect getOriginalPotionEffect()
void setPotionEffect(PotionEffect effect)
effect
- The potion effect to be used in this event