mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-19 12:56:30 +00:00
Added World.strikeLightning(). Also renamed WeatherStorm -> LightningStrike.
This commit is contained in:
parent
ca74c6d3ee
commit
95429ad663
3 changed files with 17 additions and 9 deletions
|
@ -306,6 +306,14 @@ public interface World {
|
|||
* @return Resulting LivingEntity of this method, or null if it was unsuccessful
|
||||
*/
|
||||
public LivingEntity spawnCreature(Location loc, CreatureType type);
|
||||
|
||||
/**
|
||||
* Strikes lightning at the given {@link Location}
|
||||
*
|
||||
* @param loc The location to strike lightning
|
||||
* @return
|
||||
*/
|
||||
public LightningStrike strikeLightning(Location loc);
|
||||
|
||||
/**
|
||||
* Get a list of all entities in this World
|
||||
|
|
9
src/main/java/org/bukkit/entity/LightningStrike.java
Normal file
9
src/main/java/org/bukkit/entity/LightningStrike.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents an instance of a lightning strike entity
|
||||
*/
|
||||
public interface LightningStrike extends Weather {
|
||||
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents an instance of a weather storm entity
|
||||
*/
|
||||
public interface WeatherStorm extends Weather {
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue