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