Alfonso became heir to the throne in December 1319 after his older brother James renounced his rights to become a monk .
James became heir to the throne in December 1319 after his older brother Alfonso renounced his rights to become a monk .