The Meaning of Life, the Universe, and Everything.
Join Date:
7/3/2013
Posts:
100
Member Details
I am working on a mod that adds biomes to the Nether. I am wondering what the best way to generate resources in the biomes would be. I know that resources are generated in the ChunkProvider#populate method but the only issues with this is that each of my biomes are different than the default (e.g. different resources) and my mod allows other mods to add their own biomes. This is one of the ways I did it previously:
Continue to use my previous method
Use the Biome#decorate method
Use IWorldGenerators
Still fire the TerrainGen Events in ChunkProvider#populate and subscribe to them
I am working on a mod that adds biomes to the Nether. I am wondering what the best way to generate resources in the biomes would be. I know that resources are generated in the ChunkProvider#populate method but the only issues with this is that each of my biomes are different than the default (e.g. different resources) and my mod allows other mods to add their own biomes. This is one of the ways I did it previously:
Class that controls generation:
https://github.com/LogicTechCorp/NetherEx/blob/4d840f7bc98d1862b230c916f4577a4fc770be74/src/main/java/nex/api/biome/feature/BiomeFeature.java
Where the stuff is generated:
https://github.com/LogicTechCorp/NetherEx/blob/4d840f7bc98d1862b230c916f4577a4fc770be74/src/main/java/nex/api/biome/NetherBiome.java#L32-L43
How the generators get added:
https://github.com/LogicTechCorp/NetherEx/blob/4d840f7bc98d1862b230c916f4577a4fc770be74/src/main/java/nex/world/biome/BiomeHell.java#L22-L29
Which would be the best way to do it:
Continue to use my previous method
Use the Biome#decorate method
Use IWorldGenerators
Still fire the TerrainGen Events in ChunkProvider#populate and subscribe to them
Updated original post with more info.