    001    /*
    002     * The FML Forge Mod Loader suite.
    003     * Copyright (C) 2012 cpw
    004     *
    005     * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
    006     * Software Foundation; either version 2.1 of the License, or any later version.
    007     *
    008     * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
    009     * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
    010     *
    011     * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51
    012     * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
    013     */
    014
    015    package cpw.mods.fml.common;
    016
    017    public enum Side {
    018        CLIENT, SERVER, BUKKIT;
    019
    020        /**
    021         * @return If this is the server environment
    022         */
    023        public boolean isServer()
    024        {
    025            return !isClient();
    026        }
    027
    028        /**
    029         * @return if this is the Client environment
    030         */
    031        public boolean isClient()
    032        {
    033            return this == CLIENT;
    034        }
    035    }