mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
Added World.strikeLightningEffect() that does no damage.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
56ff9f5abd
commit
e7d4bff770
2 changed files with 19 additions and 2 deletions
|
@ -314,6 +314,14 @@ public interface World {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public LightningStrike strikeLightning(Location loc);
|
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
|
* Get a list of all entities in this World
|
||||||
|
|
|
@ -2,8 +2,17 @@
|
||||||
package org.bukkit.entity;
|
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 {
|
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue