Moved chunk population to async tasks, and no more cut trees!

This commit is contained in:
Shoghi Cervantes
2015-03-27 01:56:49 +01:00
parent 72c4c01542
commit 08f2b7f291
13 changed files with 359 additions and 43 deletions

View File

@ -221,6 +221,10 @@ class Chunk extends BaseFullChunk{
$this->isGenerated = (bool) $value;
}
public static function fromFastBinary($data, LevelProvider $provider = null){
return self::fromBinary($data, $provider);
}
/**
* @param string $data
* @param LevelProvider $provider
@ -272,6 +276,10 @@ class Chunk extends BaseFullChunk{
}
}
public function toFastBinary(){
return $this->toBinary(false);
}
public function toBinary($saveExtra = false){
$chunkIndex = LevelDB::chunkIndex($this->getX(), $this->getZ());