excludeByKey

static Predicate<BiomeSelectionContextexcludeByKey(Array<RegistryKey<Biome>> keys)

See also

#excludeByKey(Collection)

#excludeByKey(Collection)

static Predicate<BiomeSelectionContextexcludeByKey(Collection<RegistryKey<Biome>> keys)

Returns a selector that will reject any biome whos keys is in the given collection of keys.

This is useful for allowing a list of biomes to be defined in the config file, wherea certain feature should not spawn.