diff --git a/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java index 509382ff20..374b7407f4 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java @@ -4,21 +4,33 @@ import java.util.List; import org.bukkit.entity.AreaEffectCloud; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; /** * Called when a lingering potion applies it's effects. Happens * once every 5 ticks */ -public class AreaEffectCloudApplyEvent extends EntityEvent { +public class AreaEffectCloudApplyEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final List affectedEntities; + private boolean cancelled = false; public AreaEffectCloudApplyEvent(final AreaEffectCloud entity, final List affectedEntities) { super(entity); this.affectedEntities = affectedEntities; } + @Override + public boolean isCancelled() { + return this.cancelled; + } + + @Override + public void setCancelled(boolean cancel) { + this.cancelled = cancel; + } + @Override public AreaEffectCloud getEntity() { return (AreaEffectCloud) entity;