    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
    015import java.util.Map;
    016import java.util.concurrent.Callable;
    017
    018/**
    019 * This call hook allows for code to execute at the very early stages of
    020 * minecraft initialization. FML uses it to validate that there is a
    021 * safe environment for further loading of FML.
    022 *
    023 * @author cpw
    024 *
    025 */
    026public interface IFMLCallHook extends Callable<Void>
    027{
    028    /**
    029     * Injected with data from the FML environment:
    030     * "classLoader" : The FML Class Loader
    031     * @param data
    032     */
    033    void injectData(Map<String,Object> data);
    034}