diff --git a/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java index 581241d06..2392885ca 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java @@ -17,6 +17,7 @@ public class LingeringPotionSplashEvent extends ProjectileHitEvent implements Ca private static final HandlerList handlers = new HandlerList(); private boolean cancelled; private final AreaEffectCloud entity; + private boolean allowEmptyAreaEffectCreation; // Paper @Deprecated(since = "1.20.2") public LingeringPotionSplashEvent(@NotNull final ThrownPotion potion, @NotNull final AreaEffectCloud entity) { @@ -44,6 +45,26 @@ public class LingeringPotionSplashEvent extends ProjectileHitEvent implements Ca return entity; } + // Paper start + /** + * Sets if an Empty AreaEffectCloud may be created + * + * @param allowEmptyAreaEffectCreation If an Empty AreaEffectCloud may be created + */ + public void allowsEmptyCreation(boolean allowEmptyAreaEffectCreation) { + this.allowEmptyAreaEffectCreation = allowEmptyAreaEffectCreation; + } + + /** + * Gets if an empty AreaEffectCloud may be created + * + * @return if an empty AreaEffectCloud may be created + */ + public boolean allowsEmptyCreation() { + return allowEmptyAreaEffectCreation; + } + // Paper end + @Override public boolean isCancelled() { return cancelled;