Add @throws docs.

Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This commit is contained in:
Dongjoon Hyun
2016-02-17 11:41:02 -08:00
parent fe2957c315
commit 302fb9e65e
3 changed files with 12 additions and 0 deletions

View File

@@ -2497,6 +2497,8 @@ class Level implements ChunkManager, Metadatable{
* @param bool $generate
*
* @return bool
*
* @throws \InvalidStateException
*/
public function loadChunk($x, $z, $generate = true){
if(isset($this->chunks[$index = Level::chunkHash($x, $z)])){