Added a lot of events relating to weather, including those for entities. Thanks wizjany!
This commit is contained in:
24
src/main/java/org/bukkit/event/weather/WeatherEvent.java
Normal file
24
src/main/java/org/bukkit/event/weather/WeatherEvent.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package org.bukkit.event.weather;
|
||||
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.event.Event;
|
||||
|
||||
/**
|
||||
* Represents an Weather-related event
|
||||
*/
|
||||
public class WeatherEvent extends Event {
|
||||
protected World world;
|
||||
|
||||
public WeatherEvent(final Event.Type type, final World where) {
|
||||
super(type);
|
||||
world = where;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the World where this event is occuring
|
||||
* @return World this event is occuring in
|
||||
*/
|
||||
public final World getWorld() {
|
||||
return world;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user