New Chunk objects / structure, Anvil region loader [WiP]

This commit is contained in:
Shoghi Cervantes
2014-04-10 05:05:36 +02:00
parent abccfeac37
commit aa1de79337
19 changed files with 594 additions and 26 deletions

View File

@ -33,4 +33,9 @@ class Anvil implements LevelFormat{
public static function isValid($path){
return file_exists(realpath($path) . "region/");
}
public static function getRegionIndex($chunkX, $chunkZ, &$x, &$z){
$x = $chunkX >> 5;
$z = $chunkZ >> 5;
}
}