diff --git a/src/main/java/biomesoplenty/common/biome/BOPOverworldBiomeBuilder.java b/src/main/java/biomesoplenty/common/biome/BOPOverworldBiomeBuilder.java index 334800e82..6452dc52e 100644 --- a/src/main/java/biomesoplenty/common/biome/BOPOverworldBiomeBuilder.java +++ b/src/main/java/biomesoplenty/common/biome/BOPOverworldBiomeBuilder.java @@ -84,7 +84,7 @@ public class BOPOverworldBiomeBuilder }; private final ResourceKey[][] RIVER_BIOMES_BOP = new ResourceKey[][]{ - {null, null, null, null, null}, + {Biomes.FROZEN_RIVER, Biomes.FROZEN_RIVER, Biomes.FROZEN_RIVER, Biomes.FROZEN_RIVER, Biomes.FROZEN_RIVER}, {null, null, null, null, null}, {null, null, null, null, null}, {null, null, null, BOPBiomes.FLOODPLAIN, BOPBiomes.FLOODPLAIN}, @@ -133,10 +133,10 @@ public class BOPOverworldBiomeBuilder private final ResourceKey[][] SWAMP_BIOMES_BOP = new ResourceKey[][]{ {BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS}, - {BOPBiomes.BOG, BOPBiomes.BOG, BOPBiomes.WETLAND, BOPBiomes.WETLAND, BOPBiomes.WETLAND}, + {BOPBiomes.WETLAND, BOPBiomes.WETLAND, BOPBiomes.WETLAND, BOPBiomes.WETLAND, BOPBiomes.WETLAND}, {BOPBiomes.MARSH, BOPBiomes.MARSH, BOPBiomes.MARSH, BOPBiomes.MARSH, BOPBiomes.MARSH}, {BOPBiomes.BAYOU, BOPBiomes.BAYOU, BOPBiomes.BAYOU, BOPBiomes.FLOODPLAIN, BOPBiomes.FLOODPLAIN}, - {BOPBiomes.BAYOU, BOPBiomes.BAYOU, BOPBiomes.FLOODPLAIN, BOPBiomes.FLOODPLAIN, BOPBiomes.FLOODPLAIN} + {BOPBiomes.BAYOU, BOPBiomes.BAYOU, BOPBiomes.BAYOU, BOPBiomes.FLOODPLAIN, BOPBiomes.FLOODPLAIN} }; protected final ResourceKey[][] PLATEAU_BIOMES = new ResourceKey[][]{ @@ -426,6 +426,7 @@ protected void addLowSlice(Registry biomeRegistry, Consumer biomeRegistry, Consumer>> mapper, Climate.Parameter weirdness) { + /* Disabled in favor of BOP rivers this.addSurfaceBiome(mapper, this.FROZEN_RANGE, this.FULL_RANGE, this.coastContinentalness, Climate.Parameter.span(this.erosions[0], this.erosions[1]), weirdness, 0.0F, weirdness.max() < 0L ? Biomes.STONY_SHORE : Biomes.FROZEN_RIVER); this.addSurfaceBiome(mapper, this.FROZEN_RANGE, this.FULL_RANGE, this.nearInlandContinentalness, Climate.Parameter.span(this.erosions[0], this.erosions[1]), weirdness, 0.0F, Biomes.FROZEN_RIVER); this.addSurfaceBiome(mapper, this.FROZEN_RANGE, this.FULL_RANGE, Climate.Parameter.span(this.coastContinentalness, this.farInlandContinentalness), Climate.Parameter.span(this.erosions[2], this.erosions[5]), weirdness, 0.0F, Biomes.FROZEN_RIVER); @@ -434,11 +435,11 @@ protected void addValleys(Registry biomeRegistry, Consumer biomeRegistry, Consumer[][] PLATEAU_BIOMES_BOP = new ResourceKey[][]{ {BOPBiomes.TUNDRA, BOPBiomes.TUNDRA, BOPBiomes.SNOWBLOSSOM_GROVE, BOPBiomes.SNOWY_MAPLE_WOODS, BOPBiomes.DEAD_FOREST}, - {BOPBiomes.SEASONAL_FOREST, BOPBiomes.ASPEN_FOREST, BOPBiomes.HIGHLAND, BOPBiomes.HIGHLAND, BOPBiomes.HIGHLAND}, + {BOPBiomes.SEASONAL_FOREST, BOPBiomes.ASPEN_FOREST, BOPBiomes.HIGHLAND, BOPBiomes.HIGHLAND, BOPBiomes.HIGHLAND}, {BOPBiomes.LAVENDER_FIELD, BOPBiomes.LAVENDER_FIELD, BOPBiomes.HIGHLAND, BOPBiomes.HIGHLAND, BOPBiomes.HIGHLAND}, {BOPBiomes.MEDITERRANEAN_FOREST, BOPBiomes.MEDITERRANEAN_FOREST, BOPBiomes.WOODLAND, BOPBiomes.ROCKY_RAINFOREST, BOPBiomes.VOLCANO}, {BOPBiomes.WASTELAND_STEPPE, BOPBiomes.WASTELAND_STEPPE, BOPBiomes.WASTELAND_STEPPE, BOPBiomes.WASTELAND_STEPPE, BOPBiomes.WASTELAND_STEPPE} @@ -47,13 +47,21 @@ public class BOPSecondaryOverworldBiomeBuilder extends BOPOverworldBiomeBuilder }; private final ResourceKey[][] RIVER_BIOMES_BOP = new ResourceKey[][]{ - {null, null, null, null, null}, + {Biomes.FROZEN_RIVER, Biomes.FROZEN_RIVER, Biomes.FROZEN_RIVER, Biomes.FROZEN_RIVER, Biomes.RIVER}, {null, null, null, null, null}, {null, null, null, null, null}, {null, null, null, null, null}, {BOPBiomes.WASTELAND, BOPBiomes.WASTELAND, BOPBiomes.WASTELAND, BOPBiomes.WASTELAND, BOPBiomes.WASTELAND} }; + private final ResourceKey[][] SWAMP_BIOMES_BOP = new ResourceKey[][]{ + {BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS, BOPBiomes.HOT_SPRINGS}, + {BOPBiomes.BOG, BOPBiomes.BOG, BOPBiomes.BOG, BOPBiomes.BOG, BOPBiomes.BOG}, + {BOPBiomes.MARSH, BOPBiomes.MARSH, BOPBiomes.MARSH, BOPBiomes.MARSH, BOPBiomes.MARSH}, + {BOPBiomes.BAYOU, BOPBiomes.BAYOU, BOPBiomes.BAYOU, BOPBiomes.FLOODPLAIN, BOPBiomes.FLOODPLAIN}, + {BOPBiomes.WASTELAND, BOPBiomes.WASTELAND, BOPBiomes.BAYOU, BOPBiomes.FLOODPLAIN, BOPBiomes.FLOODPLAIN} + }; + @Override protected ResourceKey pickMiddleBiomeBOP(Registry biomeRegistry, int temperatureIndex, int humidityIndex, Climate.Parameter weirdness) { @@ -78,4 +86,10 @@ protected ResourceKey pickRiverBiomeBOP(Registry biomeRegistry, in { return BiomeUtil.biomeOrFallback(biomeRegistry, this.RIVER_BIOMES_BOP[temperatureIndex][humidityIndex], Biomes.RIVER); } + + @Override + protected ResourceKey pickSwampBiomeBOP(Registry biomeRegistry, int temperatureIndex, int humidityIndex, Climate.Parameter weirdness) + { + return BiomeUtil.biomeOrFallback(biomeRegistry, this.SWAMP_BIOMES_BOP[temperatureIndex][humidityIndex], this.pickMiddleBiomeBOP(biomeRegistry, temperatureIndex, humidityIndex, weirdness), Biomes.SWAMP); + } }