The roles of temperature cues and resources in mast flowering