sentence: sultan agung of mataram or sultan agung anyokrokusumo or sultan agung hanyokrokusumo ( ha and a are both written using the same character in javanese script ) was the third sultan of mataram in central java ruling from 1613-1645 .