001 package org.bukkit.event.server; 002 003 import org.bukkit.event.HandlerList; 004 import org.bukkit.map.MapView; 005 006 /** 007 * Called when a map is initialized. 008 */ 009 public class MapInitializeEvent extends ServerEvent { 010 private static final HandlerList handlers = new HandlerList(); 011 private final MapView mapView; 012 013 public MapInitializeEvent(final MapView mapView) { 014 this.mapView = mapView; 015 } 016 017 /** 018 * Gets the map initialized in this event. 019 * 020 * @return Map for this event 021 */ 022 public MapView getMap() { 023 return mapView; 024 } 025 026 @Override 027 public HandlerList getHandlers() { 028 return handlers; 029 } 030 031 public static HandlerList getHandlerList() { 032 return handlers; 033 } 034 }