Is your snake in a high traffic area in your house? Corns are nocturnal and if they're constantly being bothered by people walking by, shaking the floor or their enclosure they could become stressed. If this is the case you could try moving it to a different (less used) part of the house. Maybe a spare bedroom or something? Also, if that's not possible, try draping something over the front and sides of the tank for awhile. You could tape newspaper or a towl on the sides for a bit to give it some more privacy. I found that my snake always hid under her paper towl when there were lots of people around but I switched to aspen that she can burrow in and she seems much more content and secure. Perhaps she just would like to be able to hide better? I don't really know if any of this will help but I hope so!
Oh, and if your snake is a male (I can't remember if you said or not) it could be not eating for awhile because it's breeding season. I've heard that some males will do that, particuarly if they can smell a female snake close by.