Fixed some doc problems

This commit is contained in:
Dylan K. Taylor
2017-06-25 12:07:28 +01:00
parent c0377fc63a
commit a365c831a8
28 changed files with 50 additions and 33 deletions

View File

@ -1848,7 +1848,7 @@ class Level implements ChunkManager, Metadatable{
/**
* @param int $entityId
*
* @return Entity
* @return Entity|null
*/
public function getEntity(int $entityId){
return $this->entities[$entityId] ?? null;
@ -1935,7 +1935,7 @@ class Level implements ChunkManager, Metadatable{
/**
* @param $tileId
*
* @return Tile
* @return Tile|null
*/
public function getTileById(int $tileId){
return $this->tiles[$tileId] ?? null;
@ -1962,7 +1962,7 @@ class Level implements ChunkManager, Metadatable{
*
* @param Vector3 $pos
*
* @return Tile
* @return Tile|null
*/
public function getTile(Vector3 $pos){
$chunk = $this->getChunk($pos->x >> 4, $pos->z >> 4, false);
@ -2196,7 +2196,7 @@ class Level implements ChunkManager, Metadatable{
* @param int $z
* @param bool $create Whether to generate the chunk if it does not exist
*
* @return Chunk
* @return Chunk|null
*/
public function getChunk(int $x, int $z, bool $create = false){
if(isset($this->chunks[$index = Level::chunkHash($x, $z)])){