mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 09:17:36 +01:00
Added World.strikeLightning(). Also renamed WeatherStorm -> LightningStrike.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
5b405adff6
commit
60bfea1fce
@ -306,6 +306,14 @@ public interface World {
|
|||||||
* @return Resulting LivingEntity of this method, or null if it was unsuccessful
|
* @return Resulting LivingEntity of this method, or null if it was unsuccessful
|
||||||
*/
|
*/
|
||||||
public LivingEntity spawnCreature(Location loc, CreatureType type);
|
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
|
* 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 {
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user