Immersive Geology

Immersive Geology

14.6k Downloads

Biome Generation - Exposed Cliff Ore Veins

muddykat-tech opened this issue ยท 0 comments

commented

Exposed Cliff Ore Veins

Completion Requirements
Generates a biome that has cliffs of medium to large size with ore veins that are exposed, this should be determined retroactively in the biome constructor class

Example class and registry method to think about:

public class BiomeRegistry {
   public static List<Biome> registeredBiomes = new ArrayList<Biome>();
   public static IGBiome EXAMPLE_CLIFF;
   public static void intializeBiomes(){
         registeredBiomes.add(EXAMPLE_CLIFF = new IGCliffBiome("registryName", float spawnFrequency, acceptableMineralVeinList));
   }

   public void parseBiomeRegistry(Register<Biome> event){
         intializeBiomes();
         for(Biome b : registeredBiomes ){
               event.getRegistry.register(b);
         }
   }
}

Note that the above class example has not been tested and is there to help give you an idea of how to go about it.
Code Suggestions
Contain each biome in its own extended class of IGBiome which is an extended class of Minecraft's Default 'Biome' class.
Each biome may require different parameters the above method is a way to neatly deal with this requirement.