Added World.strikeLightning(). Also renamed WeatherStorm -> LightningStrike.
This commit is contained in:
parent
ca74c6d3ee
commit
95429ad663
@ -307,6 +307,14 @@ public interface World {
|
||||
*/
|
||||
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…
x
Reference in New Issue
Block a user