User Tools

Site Tools


tutorial:structures

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:structures [2019/07/02 00:50] draylartutorial:structures [2020/02/22 19:59] – [Registering Features] new DefaultFeatureConfig() -> FeatureConfig.DEFAULT earthcomputer
Line 174: Line 174:
 for(Biome biome : Registry.BIOME) { for(Biome biome : Registry.BIOME) {
     if(biome.getCategory() != Biome.Category.OCEAN && biome.getCategory() != Biome.Category.RIVER) {     if(biome.getCategory() != Biome.Category.OCEAN && biome.getCategory() != Biome.Category.RIVER) {
-        biome.addStructureFeature(myFeature, new DefaultFeatureConfig()); +        biome.addStructureFeature(myFeature, FeatureConfig.DEFAULT); 
-        biome.addFeature(GenerationStep.Feature.SURFACE_STRUCTURES, Biome.configureFeature(myFeature, new DefaultFeatureConfig(), Decorator.CHANCE_PASSTHROUGH, new ChanceDecoratorConfig(0)));+        biome.addFeature(GenerationStep.Feature.SURFACE_STRUCTURES, Biome.configureFeature(myFeature, FeatureConfig.DEFAULT, Decorator.CHANCE_PASSTHROUGH, new ChanceDecoratorConfig(0)));
     }     }
 } }
tutorial/structures.txt · Last modified: 2022/11/05 12:06 by jab125