Removed @deprecated classes, methods and properties, added some type hints

This commit is contained in:
Shoghi Cervantes
2015-09-12 17:10:11 +02:00
parent 29a5012c02
commit 3ffdb8e552
39 changed files with 166 additions and 891 deletions

View File

@ -19,6 +19,8 @@
*
*/
declare(strict_types=1);
namespace pocketmine\level;
use pocketmine\level\format\FullChunk;
@ -33,7 +35,7 @@ interface ChunkManager{
*
* @return int 0-255
*/
public function getBlockIdAt($x, $y, $z);
public function getBlockIdAt(int $x, int $y, int $z) : int;
/**
* Sets the raw block id.
@ -43,7 +45,7 @@ interface ChunkManager{
* @param int $z
* @param int $id 0-255
*/
public function setBlockIdAt($x, $y, $z, $id);
public function setBlockIdAt(int $x, int $y, int $z, int $id);
/**
* Gets the raw block metadata
@ -54,7 +56,7 @@ interface ChunkManager{
*
* @return int 0-15
*/
public function getBlockDataAt($x, $y, $z);
public function getBlockDataAt(int $x, int $y, int $z) : int;
/**
* Sets the raw block metadata.
@ -64,27 +66,27 @@ interface ChunkManager{
* @param int $z
* @param int $data 0-15
*/
public function setBlockDataAt($x, $y, $z, $data);
public function setBlockDataAt(int $x, int $y, int $z, int $data);
/**
* @param int $chunkX
* @param int $chunkZ
*
* @return FullChunk
* @return FullChunk|null
*/
public function getChunk($chunkX, $chunkZ);
public function getChunk(int $chunkX, int $chunkZ);
/**
* @param int $chunkX
* @param int $chunkZ
* @param FullChunk $chunk
*/
public function setChunk($chunkX, $chunkZ, FullChunk $chunk = null);
public function setChunk(int $chunkX, int $chunkZ, FullChunk $chunk = null);
/**
* Gets the level seed
*
* @return int
*/
public function getSeed();
public function getSeed() : int;
}