World generation is timed by type and chunks can be created on the fly

This commit is contained in:
Shoghi Cervantes
2015-05-09 19:03:41 +02:00
parent ab18b7833f
commit db409851e9
14 changed files with 212 additions and 177 deletions

View File

@ -105,6 +105,10 @@ class Anvil extends McRegion{
$this->chunks[Level::chunkHash($chunkX, $chunkZ)] = $chunk;
}
public function getEmptyChunk($chunkX, $chunkZ){
return Chunk::getEmptyChunk($chunkX, $chunkZ, $this);
}
public static function createChunkSection($Y){
return new ChunkSection(new Compound("", [
"Y" => new Byte("Y", $Y),