[Change] Moved Nether Config Settings to BiomeSource-Config

This commit is contained in:
Frank 2022-07-02 20:04:31 +02:00
parent d6cf5a6cd9
commit 85f1d7b1e4
6 changed files with 69 additions and 45 deletions

View file

@ -79,6 +79,13 @@ public class BiomesConfig extends PathConfig {
.toList();
}
public List<String> getExcludeMatching(BiomeAPI.BiomeType type) {
var list = getBiomeExcludeMap().get(type);
if (list == null) return List.of();
return list;
}
public Map<BiomeAPI.BiomeType, List<String>> getBiomeIncludeMap() {
if (BIOME_INCLUDE_LIST == null) {
BIOME_INCLUDE_LIST = new HashMap<>();