User Tools

Site Tools


tutorial:chunkgenerator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:chunkgenerator [2022/10/20 16:30] – [Creating a ChunkGenerator] miirtutorial:chunkgenerator [2022/12/05 16:35] (current) – added clarification to multithreaded chunk generation miir
Line 1: Line 1:
-===== Custom Chunk Generators (DRAFT) =====+===== Custom Chunk Generators =====
  
 ''ChunkGenerator''s are the mechanisms by which the game generates the world. They handle terrain shaping, surface building, and biome placement.  ''ChunkGenerator''s are the mechanisms by which the game generates the world. They handle terrain shaping, surface building, and biome placement. 
Line 52: Line 52:
  
     /* this method builds the shape of the terrain. it places stone everywhere, which will later be overwritten with grass, terracotta, snow, sand, etc     /* this method builds the shape of the terrain. it places stone everywhere, which will later be overwritten with grass, terracotta, snow, sand, etc
-     by the buildSurface method. it also is responsible for putting the water in oceans. */+     by the buildSurface method. it also is responsible for putting the water in oceans. it returns a CompletableFuture-- you'll likely want this to be delegated to worker threads. */
     @Override     @Override
     public CompletableFuture<Chunk> populateNoise(Executor executor, Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk) {     public CompletableFuture<Chunk> populateNoise(Executor executor, Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk) {
tutorial/chunkgenerator.1666283439.txt.gz · Last modified: 2022/10/20 16:30 by miir