Most of the time when a snake can go into something they can get out
Of it. But, they can get themselves into trouble. Possibly put the decor on the coolside so he wants to come out of it to warm up. Or spraying him directly with a bit of water to make him come out of it. If he really can't get out you might have to break what ever it is to get him out of it. I've had to do the same with a tokay gecko. But never a ball. Though I don't use tank decor. When he does get out of there have betadine on hand to clean any wounds. Put this on daily. Do not use neosporine. Only betadine. You can get it at any drug store it's an iodine solution and is the only thing o use for cleaning and preventing infection with wounds. I'm sure he will be ok but you're going to have to do something without stressing him out too much. Hope this helps!
Morgan