mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Added World.strikeLightning(). Also renamed WeatherStorm -> LightningStrike.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
@@ -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 {
|
||||
|
||||
}
|
Reference in New Issue
Block a user