mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Added Location::__toString()
This commit is contained in:
parent
8421985102
commit
2f8c281a2e
@ -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)";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user