    001    package cpw.mods.fml.common.modloader;
    002
    003    import net.minecraft.entity.player.EntityPlayer;
    004    import net.minecraft.inventory.IInventory;
    005    import net.minecraft.item.ItemStack;
    006    import cpw.mods.fml.common.ICraftingHandler;
    007
    008    public class ModLoaderCraftingHelper implements ICraftingHandler
    009    {
    010
    011        private BaseModProxy mod;
    012
    013        public ModLoaderCraftingHelper(BaseModProxy mod)
    014        {
    015            this.mod = mod;
    016        }
    017
    018        @Override
    019        public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix)
    020        {
    021            mod.takenFromCrafting(player, item, craftMatrix);
    022        }
    023
    024        @Override
    025        public void onSmelting(EntityPlayer player, ItemStack item)
    026        {
    027            mod.takenFromFurnace(player, item);
    028        }
    029
    030    }