Archived
0

Seed based random generator

This commit is contained in:
Forwolk
2018-07-27 13:29:31 +03:00
parent 7d48095430
commit b2f5af9a84
5 changed files with 94 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ import mc.core.block.Block;
* +-------------+----------------+------------+
*
* Total: 16 bits header (2 bytes) + 24 * block_count bits (3 * block_count bytes)
* Max size: 12290 bytes (~12 Mb per chunk)
* Max size: 12290 bytes (~12 Kb per chunk)
*
*/
/* 16x16x16 */

View File

@@ -11,7 +11,7 @@ package mc.core.world;
* | biome_map | 256x256 0-32 | 2097152 |
* +-------------+----------------+------------+
*
* Total: 2097152 bits (262144 bytes = 256 Mb)
* Total: 2097152 bits (256 Kb)
*
*/
public interface Region {

View File

@@ -25,7 +25,18 @@ import java.util.UUID;
* +-------------+----------------+------------+
* | seed | long | 64 |
* +-------------+----------------+------------+
* | type | 0-255 | 8 |
* +-------------+----------------+------------+
*
* /worlds/
* --> []/world_uuid/
* --> world.dat
* --> []/r.X.Z/
* --> biomes.dat
* --> []chunk_x_y_z.dat
* --> entities.dat
* --> /playerdata/
* --> []player_uuid.dat
*/
public interface World {