public class PotionEffectExpireEvent extends PotionEffectRemoveEvent
Event.Result| Constructor and Description |
|---|
PotionEffectExpireEvent(LivingEntity entity,
PotionEffect effect) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDuration() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setDuration(int duration) |
getHandlerList, getHandlersgetEffect, getEntitygetEntityTypegetEventName, isAsynchronouspublic PotionEffectExpireEvent(LivingEntity entity, PotionEffect effect)
public int getDuration()
public void setDuration(int duration)
public boolean isCancelled()
CancellableisCancelled in interface CancellableisCancelled in class PotionEffectRemoveEventpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface CancellablesetCancelled in class PotionEffectRemoveEventcancel - true if you wish to cancel this eventCopyright © 2022. All rights reserved.