34 public function __construct(
38 $this->player = $player;
41 public function getRespawnPosition() :
Position{
42 return $this->position;
45 public function setRespawnPosition(
Position $position) :
void{
47 throw new \InvalidArgumentException(
"Spawn position must reference a valid and loaded World");
49 Utils::checkVector3NotInfOrNaN($position);
50 $this->position = $position;