From 36b2a2170ef8434194c31910c32cdccbf963061b Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 28 Jun 2019 11:12:07 +1000 Subject: [PATCH] Added support for the bamboo forest --- src/main/java/biomesoplenty/common/world/BOPLayerUtil.java | 1 + .../biomesoplenty/common/world/layer/GenLayerSubBiome.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/biomesoplenty/common/world/BOPLayerUtil.java b/src/main/java/biomesoplenty/common/world/BOPLayerUtil.java index df8235aef..cd22e5ab9 100644 --- a/src/main/java/biomesoplenty/common/world/BOPLayerUtil.java +++ b/src/main/java/biomesoplenty/common/world/BOPLayerUtil.java @@ -104,6 +104,7 @@ public class BOPLayerUtil public static > IAreaFactory createBiomeFactory(IAreaFactory landSeaAreaFactory, IAreaFactory climateAreaFactory, LongFunction contextFactory) { IAreaFactory biomeFactory = GenLayerBiomeBOP.INSTANCE.apply(contextFactory.apply(200L), landSeaAreaFactory, climateAreaFactory); + biomeFactory = AddBambooForestLayer.INSTANCE.apply(contextFactory.apply(1001L), biomeFactory); biomeFactory = LayerUtil.repeat(1000L, ZoomLayer.NORMAL, biomeFactory, 2, contextFactory); biomeFactory = GenLayerBiomeEdgeBOP.INSTANCE.apply(contextFactory.apply(1000L), biomeFactory); return biomeFactory; diff --git a/src/main/java/biomesoplenty/common/world/layer/GenLayerSubBiome.java b/src/main/java/biomesoplenty/common/world/layer/GenLayerSubBiome.java index ff594b1e9..7e08213d8 100644 --- a/src/main/java/biomesoplenty/common/world/layer/GenLayerSubBiome.java +++ b/src/main/java/biomesoplenty/common/world/layer/GenLayerSubBiome.java @@ -40,6 +40,8 @@ public enum GenLayerSubBiome implements IAreaTransformer2, IDimOffset1Transforme private static final int SNOWY_MOUNTAINS = Registry.BIOME.getId(Biomes.SNOWY_MOUNTAINS); private static final int JUNGLE = Registry.BIOME.getId(Biomes.JUNGLE); private static final int JUNGLE_HILLS = Registry.BIOME.getId(Biomes.JUNGLE_HILLS); + private static final int BAMBOO_JUNGLE = Registry.BIOME.getId(Biomes.BAMBOO_JUNGLE); + private static final int BAMBOO_JUNGLE_HILLS = Registry.BIOME.getId(Biomes.BAMBOO_JUNGLE_HILLS); private static final int BADLANDS = Registry.BIOME.getId(Biomes.BADLANDS); private static final int WOODED_BADLANDS_PLATEAU = Registry.BIOME.getId(Biomes.WOODED_BADLANDS_PLATEAU); private static final int PLAINS = Registry.BIOME.getId(Biomes.PLAINS); @@ -155,6 +157,7 @@ public enum GenLayerSubBiome implements IAreaTransformer2, IDimOffset1Transforme //else if (originalBiomeId == PLAINS) mutatedBiomeId = context.random(3) == 0 ? WOODED_HILLS : FOREST; else if (originalBiomeId == SNOWY_TUNDRA) mutatedBiomeId = SNOWY_MOUNTAINS; else if (originalBiomeId == JUNGLE) mutatedBiomeId = JUNGLE_HILLS; + else if (originalBiomeId == BAMBOO_JUNGLE) mutatedBiomeId = BAMBOO_JUNGLE_HILLS; else if (originalBiomeId == BOPLayerUtil.OCEAN) mutatedBiomeId = BOPLayerUtil.DEEP_OCEAN; else if (originalBiomeId == BOPLayerUtil.LUKEWARM_OCEAN) mutatedBiomeId = BOPLayerUtil.DEEP_LUKEWARM_OCEAN; else if (originalBiomeId == BOPLayerUtil.COLD_OCEAN) mutatedBiomeId = BOPLayerUtil.DEEP_COLD_OCEAN;