001/*
002 * Forge Mod Loader
003 * Copyright (c) 2012-2013 cpw.
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser Public License v2.1
006 * which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
008 * 
009 * Contributors:
010 *     cpw - implementation
011 */
012
013package cpw.mods.fml.common.event;
014
015import net.minecraft.server.MinecraftServer;
016import cpw.mods.fml.common.LoaderState.ModState;
017
018public class FMLServerAboutToStartEvent extends FMLStateEvent {
019
020    private MinecraftServer server;
021
022    public FMLServerAboutToStartEvent(Object... data)
023    {
024        super(data);
025        this.server = (MinecraftServer) data[0];
026    }
027    @Override
028    public ModState getModState()
029    {
030        return ModState.AVAILABLE;
031    }
032
033    public MinecraftServer getServer()
034    {
035        return server;
036    }
037}