includeByKey

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

See also

#includeByKey(Collection)

#includeByKey(Collection)

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

Returns a selector that will accept only biomes whos keys are 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 spawn exclusively.