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, getEntity
getEntityType
getEventName, isAsynchronous
public PotionEffectAddEvent(LivingEntity entity, PotionEffect effect, PotionEffectAddEvent.EffectCause effectCause)
public PotionEffectAddEvent.EffectCause getCause()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.