mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-29 14:35:09 +00:00
Merge PR #1936: Vector3:: setComponents() documentation fix
Vector3::setComponents() and override changes/removal
This commit is contained in:
commit
8f928915d9
@ -119,20 +119,6 @@ class Position extends Vector3{
|
|||||||
return "Position(level=" . ($this->isValid() ? $this->getLevel()->getName() : "null") . ",x=" . $this->x . ",y=" . $this->y . ",z=" . $this->z . ")";
|
return "Position(level=" . ($this->isValid() ? $this->getLevel()->getName() : "null") . ",x=" . $this->x . ",y=" . $this->y . ",z=" . $this->z . ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $x
|
|
||||||
* @param $y
|
|
||||||
* @param $z
|
|
||||||
*
|
|
||||||
* @return Position
|
|
||||||
*/
|
|
||||||
public function setComponents($x, $y, $z){
|
|
||||||
$this->x = $x;
|
|
||||||
$this->y = $y;
|
|
||||||
$this->z = $z;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function equals(Vector3 $v) : bool{
|
public function equals(Vector3 $v) : bool{
|
||||||
if($v instanceof Position){
|
if($v instanceof Position){
|
||||||
return parent::equals($v) and $v->getLevel() === $this->getLevel();
|
return parent::equals($v) and $v->getLevel() === $this->getLevel();
|
||||||
|
@ -326,7 +326,7 @@ class Vector3{
|
|||||||
* @param $y
|
* @param $y
|
||||||
* @param $z
|
* @param $z
|
||||||
*
|
*
|
||||||
* @return Vector3
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setComponents($x, $y, $z){
|
public function setComponents($x, $y, $z){
|
||||||
$this->x = $x;
|
$this->x = $x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user