mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Remove obsolete methods from Chunk
This commit is contained in:
parent
0114cb8399
commit
bcf049a660
@ -658,22 +658,6 @@ class Chunk{
|
||||
return $this->tileList[$index] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isLoaded() : bool{
|
||||
return $this->getProvider() === null ? false : $this->getProvider()->isChunkLoaded($this->getX(), $this->getZ());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $generate
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function load(bool $generate = true) : bool{
|
||||
return $this->getProvider() === null ? false : $this->getProvider()->getChunk($this->getX(), $this->getZ(), true) instanceof Chunk;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unloads the chunk, closing entities and tiles.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user