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 revision Previous revision
tutorial:structures [2020/02/22 19:59]
earthcomputer [Registering Features] new DefaultFeatureConfig() -> FeatureConfig.DEFAULT
tutorial:structures [2020/02/22 20:05] (current)
earthcomputer [Registering Features] Update feature configuring to 1.15
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(myFeatureFeatureConfig.DEFAULT);​ +        biome.addStructureFeature(myFeature.configure(FeatureConfig.DEFAULT)); 
-        biome.addFeature(GenerationStep.Feature.SURFACE_STRUCTURES, ​Biome.configureFeature(myFeature, ​FeatureConfig.DEFAULTDecorator.CHANCE_PASSTHROUGHnew ChanceDecoratorConfig(0)));​+        biome.addFeature(GenerationStep.Feature.SURFACE_STRUCTURES, ​myFeature.configure(FeatureConfig.DEFAULT).createDecoratedFeature(Decorator.CHANCE_PASSTHROUGH.configure(new ChanceDecoratorConfig(0))));
     }     }
 } }
tutorial/structures.txt · Last modified: 2020/02/22 20:05 by earthcomputer