Archived
0
This commit is contained in:
Forwolk
2018-07-27 08:16:46 +03:00
parent a9e44c98d6
commit ec67dc328e
2 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
package mc.core.world;
/**
* Simple world generation unit
* 16x16x16 chunks
*/
public interface Region {
Chunk getChunkAt(int x, int y, int z);
void setChunk(int x, int y, int z, Chunk chunk);
int getX();
int getY();
int getZ();
Biome getBiomeAt (int x, int z);
void setBiome (int x, int z, Biome biome);
}

View File

@@ -2,5 +2,5 @@ package mc.core.world;
public interface WorldGenerator { public interface WorldGenerator {
Chunk generateChunk (int x, int z, World world); Region generateRegion (int x, int z, World world);
} }