mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Mass removal of useless @param/@return PHPDoc annotations, pass 1
This commit is contained in:
@ -34,18 +34,11 @@ abstract class ChunkEvent extends LevelEvent{
|
||||
/** @var Chunk */
|
||||
private $chunk;
|
||||
|
||||
/**
|
||||
* @param Level $level
|
||||
* @param Chunk $chunk
|
||||
*/
|
||||
public function __construct(Level $level, Chunk $chunk){
|
||||
parent::__construct($level);
|
||||
$this->chunk = $chunk;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Chunk
|
||||
*/
|
||||
public function getChunk() : Chunk{
|
||||
return $this->chunk;
|
||||
}
|
||||
|
@ -39,9 +39,6 @@ class ChunkLoadEvent extends ChunkEvent{
|
||||
$this->newChunk = $newChunk;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isNewChunk() : bool{
|
||||
return $this->newChunk;
|
||||
}
|
||||
|
@ -33,16 +33,10 @@ abstract class LevelEvent extends Event{
|
||||
/** @var Level */
|
||||
private $level;
|
||||
|
||||
/**
|
||||
* @param Level $level
|
||||
*/
|
||||
public function __construct(Level $level){
|
||||
$this->level = $level;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Level
|
||||
*/
|
||||
public function getLevel() : Level{
|
||||
return $this->level;
|
||||
}
|
||||
|
@ -34,18 +34,11 @@ class SpawnChangeEvent extends LevelEvent{
|
||||
/** @var Position */
|
||||
private $previousSpawn;
|
||||
|
||||
/**
|
||||
* @param Level $level
|
||||
* @param Position $previousSpawn
|
||||
*/
|
||||
public function __construct(Level $level, Position $previousSpawn){
|
||||
parent::__construct($level);
|
||||
$this->previousSpawn = $previousSpawn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Position
|
||||
*/
|
||||
public function getPreviousSpawn() : Position{
|
||||
return $this->previousSpawn;
|
||||
}
|
||||
|
Reference in New Issue
Block a user