dimRes = GenRestriction.WHITELIST;
}
}
List<WeightedRandomBlock> matList = parseMaterial(genObject, log);
FeatureBase feature = getFeature(featureName, genObject, getGenerator(genObject, log, resList, clusterSize, matList),
matList, numClusters, biomeRes, retrogen, dimRes, log);
if (genObject.has("chunkChance")) {
int rarity = MathHelper.clampI(genObject.get("chunkChance").getAsInt(), 1, 1000000);
feature.setRarity(rarity);
}
if (feature != null)
addFeatureRestrictions(feature, genObject);
return feature;
}