    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    package cpw.mods.fml.common;
    015
    016    import net.minecraft.src.EntityPlayer;
    017    import net.minecraft.src.IInventory;
    018    import net.minecraft.src.ItemStack;
    019
    020    /**
    021     * Return a crafting handler for the mod container to call
    022     *
    023     * @author cpw
    024     *
    025     */
    026    public interface ICraftingHandler
    027    {
    028        /**
    029         * The object array contains these three arguments
    030         *
    031         * @param player
    032         * @param item
    033         * @param craftMatrix
    034         */
    035        void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix);
    036
    037        /**
    038         * The object array contains these two arguments
    039         * @param player
    040         * @param item
    041         */
    042        void onSmelting(EntityPlayer player, ItemStack item);
    043    }