diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 6f72573991..ba262a5d22 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -314,6 +314,14 @@ public interface World { * @return */ public LightningStrike strikeLightning(Location loc); + + /** + * Strikes lightning at the given {@link Location} without doing damage + * + * @param loc The location to strike lightning + * @return + */ + public LightningStrike strikeLightningEffect(Location loc); /** * Get a list of all entities in this World diff --git a/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java b/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java index 5ffd137fca..ea8d7d0f66 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java +++ b/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java @@ -2,8 +2,17 @@ package org.bukkit.entity; /** - * Represents an instance of a lightning strike entity + * Represents an instance of a lightning strike. May or may not do damage. + * + * @author sk89q */ public interface LightningStrike extends Weather { - + + /** + * Returns whether the strike is an effect that does no damage. + * + * @return whether the strike is an effect + */ + public boolean isEffect(); + }