Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 25 lines 519 B view raw
1package org.bukkit.event.weather; 2 3import org.bukkit.World; 4import org.bukkit.event.Event; 5 6/** 7 * Represents a Weather-related event 8 */ 9public class WeatherEvent extends Event { 10 protected World world; 11 12 public WeatherEvent(final Event.Type type, final World where) { 13 super(type); 14 world = where; 15 } 16 17 /** 18 * Returns the World where this event is occurring 19 * 20 * @return World this event is occurring in 21 */ 22 public final World getWorld() { 23 return world; 24 } 25}