Added World.strikeLightning(). Also renamed WeatherStorm -> LightningStrike.

This commit is contained in:
sk89q 2011-04-22 01:25:41 -07:00
parent ca74c6d3ee
commit 95429ad663
3 changed files with 17 additions and 9 deletions

View File

@ -307,6 +307,14 @@ public interface World {
*/ */
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
* *

View File

@ -0,0 +1,9 @@
package org.bukkit.entity;
/**
* Represents an instance of a lightning strike entity
*/
public interface LightningStrike extends Weather {
}

View File

@ -1,9 +0,0 @@
package org.bukkit.entity;
/**
* Represents an instance of a weather storm entity
*/
public interface WeatherStorm extends Weather {
}