mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Mass removal of useless @param/@return PHPDoc annotations, pass 1
This commit is contained in:
@ -44,9 +44,6 @@ class Position extends Vector3{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Vector3 $pos
|
||||
* @param Level|null $level
|
||||
*
|
||||
* @return Position
|
||||
*/
|
||||
public static function fromObject(Vector3 $pos, Level $level = null){
|
||||
@ -55,8 +52,6 @@ class Position extends Vector3{
|
||||
|
||||
/**
|
||||
* Return a Position instance
|
||||
*
|
||||
* @return Position
|
||||
*/
|
||||
public function asPosition() : Position{
|
||||
return new Position($this->x, $this->y, $this->z, $this->level);
|
||||
@ -80,8 +75,6 @@ class Position extends Vector3{
|
||||
/**
|
||||
* Sets the target Level of the position.
|
||||
*
|
||||
* @param Level|null $level
|
||||
*
|
||||
* @return $this
|
||||
*
|
||||
* @throws \InvalidArgumentException if the specified Level has been closed
|
||||
@ -97,8 +90,6 @@ class Position extends Vector3{
|
||||
|
||||
/**
|
||||
* Checks if this object has a valid reference to a loaded Level
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isValid() : bool{
|
||||
if($this->level !== null and $this->level->isClosed()){
|
||||
@ -113,9 +104,6 @@ class Position extends Vector3{
|
||||
/**
|
||||
* Returns a side Vector
|
||||
*
|
||||
* @param int $side
|
||||
* @param int $step
|
||||
*
|
||||
* @return Position
|
||||
*/
|
||||
public function getSide(int $side, int $step = 1){
|
||||
|
Reference in New Issue
Block a user