Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
MapInitializeEvent.java
1 package org.bukkit.event.server;
2 
4 import org.bukkit.map.MapView;
5 
6 /**
7  * Called when a map is initialized.
8  */
9 public class MapInitializeEvent extends ServerEvent {
10  private static final HandlerList handlers = new HandlerList();
11  private final MapView mapView;
12 
13  public MapInitializeEvent(final MapView mapView) {
14  this.mapView = mapView;
15  }
16 
17  /**
18  * Gets the map initialized in this event.
19  *
20  * @return Map for this event
21  */
22  public MapView getMap() {
23  return mapView;
24  }
25 
26  @Override
27  public HandlerList getHandlers() {
28  return handlers;
29  }
30 
31  public static HandlerList getHandlerList() {
32  return handlers;
33  }
34 }