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, getHandlers
getEffect, getEntity
getEntityType
getEventName, isAsynchronous
public PotionEffectExpireEvent(LivingEntity entity, PotionEffect effect)
public int getDuration()
public void setDuration(int duration)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
isCancelled
in class PotionEffectRemoveEvent
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
setCancelled
in class PotionEffectRemoveEvent
cancel
- true if you wish to cancel this eventCopyright © 2022. All rights reserved.