GenRestriction dimRes, Logger log) {
if (genObject.has("followTerrain") && genObject.get("followTerrain").getAsBoolean()) {
return new FeatureGenTopBlock(featureName, gen, matList, numClusters, biomeRes, retrogen, dimRes);
} else {
return new FeatureGenSurface(featureName, gen, matList, numClusters, biomeRes, retrogen, dimRes);
}
}