Merge pull request #2612 from PEMapModder/patch-1

Added Location::__toString()
This commit is contained in:
Shoghi Cervantes 2015-02-05 11:06:52 +01:00
commit 9a5afff4ab

View File

@ -51,4 +51,7 @@ class Location extends Position{
return $this->pitch; 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)";
}
} }