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.relauncher;
014
015public enum Side {
016    CLIENT, SERVER, BUKKIT;
017
018    /**
019     * @return If this is the server environment
020     */
021    public boolean isServer()
022    {
023        return !isClient();
024    }
025
026    /**
027     * @return if this is the Client environment
028     */
029    public boolean isClient()
030    {
031        return this == CLIENT;
032    }
033}