//World Generation gist written by Telepathic Grunt.
So when minecraft goes to make a chunk, it has a certain order to making the world.
- Biome Provider
- ChunkGenerator
- SurfaceBuilder
- Carvers
- Structures/Features Generation Stages
//World Generation gist written by Telepathic Grunt.
So when minecraft goes to make a chunk, it has a certain order to making the world.
#include <iostream> | |
const uint64_t MASK = 0xffffffffffffL; | |
//Credits : Matthew Bolan for the following Function | |
static inline uint64_t modInverse(uint64_t a,uint64_t k){ | |
uint64_t x = (((a << 2) ^ (a << 1)) & 8) ^ a; | |
x += x - a * x * x; |