This commit is contained in:
Adubbz 2020-09-19 19:10:20 +10:00
parent cc72f61a57
commit 7970d1bfff
71 changed files with 94 additions and 97 deletions

View file

@ -8,17 +8,23 @@
package biomesoplenty.common.biome;
import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.common.util.biome.BiomeUtil;
import biomesoplenty.core.BiomesOPlenty;
import net.minecraft.util.RegistryKey;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.registry.DynamicRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.WorldGenRegistries;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeGenerationSettings;
import net.minecraft.world.biome.Biomes;
import net.minecraft.world.biome.MobSpawnInfo;
import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraftforge.registries.ForgeRegistries;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
public class BiomeTemplate
{
@ -27,7 +33,7 @@ public class BiomeTemplate
private RegistryKey<Biome> riverBiome = Biomes.RIVER;
protected void configureBiome(Biome.Builder builder) {}
protected void configureGeneration(BiomeGenerationSettings.Builder builder) {}
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder) {}
protected void configureMobSpawns(MobSpawnInfo.Builder builder) {}
protected void configureDefaultMobSpawns(MobSpawnInfo.Builder builder)
@ -40,7 +46,7 @@ public class BiomeTemplate
Biome.Builder biomeBuilder = new Biome.Builder();
// Configure the biome generation
BiomeGenerationSettings.Builder biomeGenBuilder = new BiomeGenerationSettings.Builder();
BiomeGenerationSettingsRegistryBuilder biomeGenBuilder = new BiomeGenerationSettingsRegistryBuilder();
this.configureGeneration(biomeGenBuilder);
biomeBuilder.generationSettings(biomeGenBuilder.build());
@ -81,4 +87,19 @@ public class BiomeTemplate
lvt_1_1_ = MathHelper.clamp(lvt_1_1_, -1.0F, 1.0F);
return MathHelper.hsvToRgb(0.62222224F - lvt_1_1_ * 0.05F, 0.5F + lvt_1_1_ * 0.1F, 1.0F);
}
protected static class BiomeGenerationSettingsRegistryBuilder extends BiomeGenerationSettings.Builder
{
public BiomeGenerationSettings.Builder addFeature(GenerationStage.Decoration stage, ConfiguredFeature<?, ?> feature)
{
// As a temporary measure, register configured features as we go
// Thanks for continuing to fuck us over Mojang.
if (!WorldGenRegistries.CONFIGURED_FEATURE.getResourceKey(feature).isPresent())
{
Registry.register(WorldGenRegistries.CONFIGURED_FEATURE, new ResourceLocation(BiomesOPlenty.MOD_ID, "" + feature.hashCode()), feature);
}
return super.addFeature(stage, feature);
}
}
}

View file

@ -33,7 +33,7 @@ public class CrystallineChasmBiome extends NetherBiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.NETHER, SurfaceBuilder.CONFIG_HELL));

View file

@ -36,7 +36,7 @@ public class UndergrowthBiome extends NetherBiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.NETHER, SurfaceBuilder.CONFIG_HELL));

View file

@ -34,7 +34,7 @@ public class VisceralHeapBiome extends NetherBiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.FLESH, SurfaceBuilder.CONFIG_HELL));

View file

@ -33,7 +33,7 @@ public class WitheredAbyssBiome extends NetherBiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.WITHERED_ABYSS, BOPSurfaceBuilders.BLACKSTONE_SURFACE));

View file

@ -34,7 +34,7 @@ public class AlpsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.DEEP_TOP_LAYER, BOPSurfaceBuilders.SNOW_SNOW_GRAVEL_SURFACE));

View file

@ -37,7 +37,7 @@ public class AlpsFoothillsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_STONE));

View file

@ -44,7 +44,7 @@ public class BayouBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -43,7 +43,7 @@ public class BogBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -13,7 +13,6 @@ import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.feature.FernGrassFeature;
import com.google.common.collect.ImmutableList;
import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
@ -45,7 +44,7 @@ public class BorealForestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
// Surface builder
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -22,7 +22,6 @@ import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -43,7 +42,7 @@ public class BrushlandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.BRUSHLAND, SurfaceBuilder.CONFIG_GRASS));

View file

@ -41,7 +41,7 @@ public class ChaparralBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.CHAPARRAL, SurfaceBuilder.CONFIG_GRASS));

View file

@ -42,7 +42,7 @@ public class CherryBlossomGroveBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -10,17 +10,13 @@ package biomesoplenty.common.biome.overworld;
import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.feature.WastelandGrassFeature;
import biomesoplenty.common.world.gen.surfacebuilders.BOPSurfaceBuilders;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
import net.minecraft.world.biome.*;
import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -42,7 +38,7 @@ public class ColdDesertBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.COLD_DESERT, SurfaceBuilder.CONFIG_GRAVEL));

View file

@ -42,7 +42,7 @@ public class ConiferousForestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -40,7 +40,7 @@ public class DeadForestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -39,7 +39,7 @@ public class FirClearingBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -43,7 +43,7 @@ public class FloodplainBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.SWAMP, SurfaceBuilder.CONFIG_GRASS));

View file

@ -41,7 +41,7 @@ public class FlowerMeadowBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -41,7 +41,7 @@ public class FungalJungleBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -39,7 +39,7 @@ public class GrasslandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -31,7 +31,7 @@ public class GravelBeachBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRAVEL));

View file

@ -43,7 +43,7 @@ public class GroveBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.PODZOL, SurfaceBuilder.CONFIG_GRASS));

View file

@ -40,7 +40,7 @@ public class HighlandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -38,7 +38,7 @@ public class HighlandMoorBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -38,7 +38,7 @@ public class LavenderFieldBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -44,7 +44,7 @@ public class LushGrasslandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -42,7 +42,7 @@ public class LushSwampBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -42,7 +42,7 @@ public class MangroveBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.MANGROVE, SurfaceBuilder.CONFIG_GRASS));

View file

@ -40,7 +40,7 @@ public class MapleWoodsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -42,7 +42,7 @@ public class MarshBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.MARSH, SurfaceBuilder.CONFIG_GRASS));

View file

@ -43,7 +43,7 @@ public class MeadowBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -44,7 +44,7 @@ public class MireBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.MUD, SurfaceBuilder.CONFIG_GRASS));

View file

@ -44,7 +44,7 @@ public class MuskegBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.PODZOL, SurfaceBuilder.CONFIG_GRASS));

View file

@ -21,7 +21,6 @@ import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -44,7 +43,7 @@ public class MysticGroveBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -38,7 +38,7 @@ public class OasisBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_FULL_SAND));

View file

@ -21,7 +21,6 @@ import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -44,7 +43,7 @@ public class OminousWoodsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -37,7 +37,7 @@ public class OrchardBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -38,7 +38,7 @@ public class OriginHillsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.ORIGIN_HILLS, BOPSurfaceBuilders.ORIGIN_GRASS_SURFACE));

View file

@ -14,18 +14,15 @@ import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.surfacebuilders.BOPSurfaceBuilders;
import com.google.common.collect.ImmutableList;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
import net.minecraft.world.biome.*;
import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.BlockStateFeatureConfig;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.Features;
import net.minecraft.world.gen.feature.MultipleRandomFeatureConfig;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -46,7 +43,7 @@ public class OutbackBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, BOPSurfaceBuilders.RED_SAND_SURFACE));

View file

@ -43,7 +43,7 @@ public class OvergrownCliffsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.TERRACOTTA, SurfaceBuilder.CONFIG_GRASS));

View file

@ -36,7 +36,7 @@ public class PastureBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -41,7 +41,7 @@ public class PoppyFieldBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.POPPY_FIELD, SurfaceBuilder.CONFIG_GRASS));

View file

@ -40,7 +40,7 @@ public class PrairieBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -41,7 +41,7 @@ public class PumpkinPatchBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -40,7 +40,7 @@ public class RainbowValleyBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -42,7 +42,7 @@ public class RainforestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -39,7 +39,7 @@ public class RedwoodForestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_PODZOL));

View file

@ -36,7 +36,7 @@ public class RedwoodForestEdgeBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.PODZOL, SurfaceBuilder.CONFIG_PODZOL));

View file

@ -40,7 +40,7 @@ public class ScrublandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -43,7 +43,7 @@ public class SeasonalForestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -44,7 +44,7 @@ public class ShieldBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.CHAPARRAL, SurfaceBuilder.CONFIG_GRASS));

View file

@ -44,7 +44,7 @@ public class ShrublandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -43,7 +43,7 @@ public class SilkgladeBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -39,7 +39,7 @@ public class SnowyConiferousForestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -34,7 +34,7 @@ public class SnowyFirClearingBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -38,7 +38,7 @@ public class SnowyForestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -12,7 +12,6 @@ import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.feature.StandardGrassFeature;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
@ -21,7 +20,6 @@ import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.Features;
import net.minecraft.world.gen.feature.IFeatureConfig;
import net.minecraft.world.gen.feature.NoFeatureConfig;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -43,7 +41,7 @@ public class SteppeBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -13,7 +13,6 @@ import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.feature.FernGrassFeature;
import com.google.common.collect.ImmutableList;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityClassification;
@ -25,7 +24,6 @@ import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -47,7 +45,7 @@ public class TemperateRainforestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -12,7 +12,6 @@ import biomesoplenty.api.block.BOPBlocks;
import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.feature.FernGrassFeature;
import com.google.common.collect.ImmutableList;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityClassification;
@ -22,7 +21,6 @@ import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -43,7 +41,7 @@ public class TemperateRainforestHillsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -36,7 +36,7 @@ public class TropicBeachBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.TROPICS, BOPSurfaceBuilders.WHITE_SAND_SURFACE));

View file

@ -45,7 +45,7 @@ public class TropicalRainforestBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -43,7 +43,7 @@ public class TropicsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.TROPICS, SurfaceBuilder.CONFIG_GRASS));

View file

@ -43,7 +43,7 @@ public class TundraBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS)) ;

View file

@ -12,7 +12,6 @@ import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.surfacebuilders.BOPSurfaceBuilders;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
import net.minecraft.world.biome.*;
@ -39,7 +38,7 @@ public class VolcanicPlainsBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.BLACK_SAND, BOPSurfaceBuilders.BLACK_SAND_SURFACE));

View file

@ -41,7 +41,7 @@ public class VolcanoBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(BOPSurfaceBuilders.VOLCANO, BOPSurfaceBuilders.BASALT_SURFACE));

View file

@ -10,7 +10,6 @@ package biomesoplenty.common.biome.overworld;
import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import biomesoplenty.common.world.gen.feature.WastelandGrassFeature;
import biomesoplenty.common.world.gen.surfacebuilders.BOPSurfaceBuilders;
import com.google.common.collect.ImmutableList;
import net.minecraft.entity.EntityClassification;
@ -42,7 +41,7 @@ public class WastelandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, BOPSurfaceBuilders.DRIED_SALT_SURFACE));

View file

@ -45,7 +45,7 @@ public class WetlandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -42,7 +42,7 @@ public class WoodlandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_GRASS));

View file

@ -11,18 +11,15 @@ import biomesoplenty.api.block.BOPBlocks;
import biomesoplenty.common.biome.BiomeTemplate;
import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPFeatures;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
import net.minecraft.world.biome.*;
import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.BlockStateFeatureConfig;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.Features;
import net.minecraft.world.gen.feature.IFeatureConfig;
import net.minecraft.world.gen.feature.structure.StructureFeatures;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.ChanceConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
@ -40,7 +37,7 @@ public class XericShrublandBiome extends BiomeTemplate
}
@Override
protected void configureGeneration(BiomeGenerationSettings.Builder builder)
protected void configureGeneration(BiomeGenerationSettingsRegistryBuilder builder)
{
builder.surfaceBuilder(new ConfiguredSurfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.CONFIG_FULL_SAND));

View file

@ -62,8 +62,6 @@ public class BiomesOPlenty
private void loadComplete(final FMLLoadCompleteEvent event) // PostRegistrationEven
{
proxy.init();
ForgeRegistries.BIOMES.getKeys().forEach(key -> BiomesOPlenty.logger.info("Forge: " + key));
DynamicRegistries.builtin().registryOrThrow(Registry.BIOME_REGISTRY).keySet().stream().forEach(key -> BiomesOPlenty.logger.info("Vanilla: " + key));
}
private void serverStarting(final FMLServerAboutToStartEvent event)