package net.tropicraft.core.common.dimension.layer;

import net.minecraft.world.gen.INoiseRandom;
import net.minecraft.world.gen.layer.traits.IC0Transformer;

public final class TropicraftAddSubBiomesLayer implements IC0Transformer {
	final int baseID;
	final int[] subBiomeIDs;

	TropicraftAddSubBiomesLayer(final int baseID, final int[] subBiomeIDs) {
		this.baseID = baseID;
		this.subBiomeIDs = subBiomeIDs;
	}

	public static TropicraftAddSubBiomesLayer rainforest(TropicraftBiomeIds biomeIds) {
		return new TropicraftAddSubBiomesLayer(biomeIds.rainforestPlains, new int[] { biomeIds.rainforestHills, biomeIds.rainforestMountains });
	}

	@Override
	public int apply(INoiseRandom random, int center) {
		if (center == baseID) {
			return subBiomeIDs[random.random(subBiomeIDs.length)];
		} else {
			return center;
		}
	}
}

@@ -573,16 +573,43 @@
  int%5B%5D %7B
+ biomeIds.rainforestPlains,
  biomeId

Fix Rainforest Plains not being generated