implement multiple vanilla biomes per custom biome

This commit is contained in:
dfsek
2021-01-14 20:28:52 -07:00
parent c1fdfa94f1
commit d327909389
11 changed files with 103 additions and 17 deletions
@@ -1,5 +1,6 @@
package com.dfsek.terra.api.world.biome;
import com.dfsek.terra.api.math.noise.samplers.NoiseSampler;
import com.dfsek.terra.api.platform.block.BlockData;
import com.dfsek.terra.api.world.palette.Palette;
@@ -24,4 +25,6 @@ public interface Generator {
boolean is2d();
double get2dBase();
NoiseSampler getBiomeNoise();
}
@@ -1,6 +1,7 @@
package com.dfsek.terra.api.world.biome;
import com.dfsek.terra.api.math.ProbabilityCollection;
import com.dfsek.terra.api.platform.world.Biome;
import com.dfsek.terra.api.platform.world.World;
@@ -17,7 +18,7 @@ public interface TerraBiome {
*
* @return TerraBiome - The Vanilla biome.
*/
Biome getVanillaBiome();
ProbabilityCollection<Biome> getVanillaBiomes();
/**
* Gets the BiomeTerrain instance used to generate the biome.