When i got my royal he was not eating, pooing or doing much. I started reading every thing i could on royals so i could do the best for my boy. what i found out is time is the best thing for your royal. my boy loves to eat now even when i cleaned out his viv and moved every thing around there he was after watching me get his food ready and bang took his first small mouse . I can't tell you how happy am with him but i know one thing if he does stop eating again, i will just give him time.
You're not wrong. If you have provided a suitable enclosure which meets the needs of the snake then yes time normally does the job. Not panicking is the key, running around trying this that and the other is just going to stress a Royal Python. Glad to hear your boy has started eating again. Not worry if its a bit sporadic the snake always knows what its doing.