public class PotionEffectAddEvent extends PotionEffectEvent implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
PotionEffectAddEvent.EffectCause |
Event.Result| Constructor and Description |
|---|
PotionEffectAddEvent(LivingEntity entity,
PotionEffect effect,
PotionEffectAddEvent.EffectCause effectCause) |
| Modifier and Type | Method and Description |
|---|---|
PotionEffectAddEvent.EffectCause |
getCause() |
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getEffect, getEntitygetEntityTypegetEventName, isAsynchronouspublic PotionEffectAddEvent(LivingEntity entity, PotionEffect effect, PotionEffectAddEvent.EffectCause effectCause)
public PotionEffectAddEvent.EffectCause getCause()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.