-
-
Save anonymous/1e0abd14218551e61882138063c3a3e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chocolatemod.worldgen; | |
import net.minecraft.world.gen.layer.GenLayer; | |
import net.minecraft.world.gen.layer.GenLayerVoronoiZoom; | |
import net.minecraft.world.gen.layer.GenLayerZoom; | |
public abstract class GenLayerChocolate extends GenLayer { | |
public GenLayerChocolate(long seed) { | |
super(seed); | |
} | |
public static GenLayer[] makeTheWorld(long seed) { | |
GenLayer biomes = new GenLayerBiomesChocolate(1L); | |
// more GenLayerZoom = bigger biomes | |
biomes = new GenLayerZoom(1000L, biomes); | |
biomes = new GenLayerZoom(1001L, biomes); | |
biomes = new GenLayerZoom(1002L, biomes); | |
biomes = new GenLayerZoom(1003L, biomes); | |
biomes = new GenLayerZoom(1004L, biomes); | |
biomes = new GenLayerZoom(1005L, biomes); | |
GenLayer genlayervoronoizoom = new GenLayerVoronoiZoom(10L, biomes); | |
biomes.initWorldGenSeed(seed); | |
genlayervoronoizoom.initWorldGenSeed(seed); | |
return new GenLayer[]{biomes, genlayervoronoizoom}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment