BiomeSelectors

public final class BiomeSelectors

Provides several convenient biome selectors that can be used with BiomeModifications.

Experimental feature, may be removed or changed without further notice.

Functions

all
Link copied to clipboard
static Predicate<BiomeSelectionContextall()
Matches all Biomes.
builtIn
Link copied to clipboard
static Predicate<BiomeSelectionContextbuiltIn()
Matches Biomes that have not been originally defined in a datapack, but that are defined in code.
categories
Link copied to clipboard
static Predicate<BiomeSelectionContextcategories(Array<Biome.Category> categories)
Matches Biomes that have one of the given categories.
excludeByKey
Link copied to clipboard
static Predicate<BiomeSelectionContextexcludeByKey(Collection<RegistryKey<Biome>> keys)
Returns a selector that will reject any biome whos keys is in the given collection of keys.
static Predicate<BiomeSelectionContextexcludeByKey(Array<RegistryKey<Biome>> keys)
#excludeByKey(Collection)
foundInOverworld
Link copied to clipboard
static Predicate<BiomeSelectionContextfoundInOverworld()
Returns a biome selector that will match all biomes that would normally spawn in the Overworld,assuming Vanilla's layered biome source is used.
foundInTheEnd
Link copied to clipboard
static Predicate<BiomeSelectionContextfoundInTheEnd()
Returns a biome selector that will match all biomes that would normally spawn in the End,assuming Vanilla's default End biome source is used.
foundInTheNether
Link copied to clipboard
static Predicate<BiomeSelectionContextfoundInTheNether()
Returns a biome selector that will match all biomes that would normally spawn in the Nether,assuming Vanilla's default multi noise biome source with the nether preset is used.
includeByKey
Link copied to clipboard
static Predicate<BiomeSelectionContextincludeByKey(Collection<RegistryKey<Biome>> keys)
Returns a selector that will accept only biomes whos keys are in the given collection of keys.
static Predicate<BiomeSelectionContextincludeByKey(Array<RegistryKey<Biome>> keys)
#includeByKey(Collection)
spawnsOneOf
Link copied to clipboard
static Predicate<BiomeSelectionContextspawnsOneOf(Set<EntityType<? extends Object>> entityTypes)
Returns a biome selector that will match biomes in which one of the given entity types can spawn.
static Predicate<BiomeSelectionContextspawnsOneOf(Array<EntityType<? extends Object>> entityTypes)
Returns a biome selector that will match biomes in which one of the given entity types can spawn.
vanilla
Link copied to clipboard
static Predicate<BiomeSelectionContextvanilla()
Returns a biome selector that will match all biomes from the minecraft namespace.

Sources

jvm source
Link copied to clipboard