Added Location::__toString()

This commit is contained in:
PEMapModder 2015-02-05 18:00:25 +08:00
parent 8421985102
commit 2f8c281a2e

View File

@ -51,4 +51,7 @@ class Location extends Position{
return $this->pitch;
}
public function __toString(){
return return "Location(level=" . ($this->isValid() ? $this->getLevel()->getName() : "null") . ",x=$this->x,y=$this->y,z=$this->z,yaw=$this->yaw,pitch=$this->pitch)";
}
}