public function getProfession() : int { $pro = (int) $this->namedtag["Profession"]; return min(4, max(0, $pro)); }