Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
WorldEvent.java
1 package org.bukkit.event.world;
2 
3 import org.bukkit.World;
4 import org.bukkit.event.Event;
5 
6 /**
7  * Represents events within a world
8  */
9 public abstract class WorldEvent extends Event {
10  private final World world;
11 
12  public WorldEvent(final World world) {
13  this.world = world;
14  }
15 
16  /**
17  * Gets the world primarily involved with this event
18  *
19  * @return World which caused this event
20  */
21  public World getWorld() {
22  return world;
23  }
24 }