@Deprecated public final class BiomeSelectors extends Object
BiomeModifications
.
Experimental feature, may be removed or changed without further notice.
Modifier and Type | Method and Description |
---|---|
static Predicate<BiomeSelectionContext> |
all()
Deprecated.
Matches all Biomes.
|
static Predicate<BiomeSelectionContext> |
builtIn()
Deprecated.
Matches Biomes that have not been originally defined in a datapack, but that are defined in code.
|
static Predicate<BiomeSelectionContext> |
categories(net.minecraft.world.biome.Biome.Category... categories)
Deprecated.
Matches Biomes that have one of the given categories.
|
static Predicate<BiomeSelectionContext> |
excludeByKey(Collection<net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>> keys)
Deprecated.
Returns a selector that will reject any biome whos keys is in the given collection of keys.
|
static Predicate<BiomeSelectionContext> |
excludeByKey(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>... keys)
Deprecated.
|
static Predicate<BiomeSelectionContext> |
foundInOverworld()
Deprecated.
Returns a biome selector that will match all biomes that would normally spawn in the Overworld,
assuming Vanilla's layered biome source is used.
|
static Predicate<BiomeSelectionContext> |
foundInTheEnd()
Deprecated.
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.
|
static Predicate<BiomeSelectionContext> |
foundInTheNether()
Deprecated.
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.
|
static Predicate<BiomeSelectionContext> |
includeByKey(Collection<net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>> keys)
Deprecated.
Returns a selector that will accept only biomes whos keys are in the given collection of keys.
|
static Predicate<BiomeSelectionContext> |
includeByKey(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>... keys)
Deprecated.
|
static Predicate<BiomeSelectionContext> |
spawnsOneOf(net.minecraft.entity.EntityType<?>... entityTypes)
Deprecated.
Returns a biome selector that will match biomes in which one of the given entity types can spawn.
|
static Predicate<BiomeSelectionContext> |
spawnsOneOf(Set<net.minecraft.entity.EntityType<?>> entityTypes)
Deprecated.
Returns a biome selector that will match biomes in which one of the given entity types can spawn.
|
static Predicate<BiomeSelectionContext> |
vanilla()
Deprecated.
Returns a biome selector that will match all biomes from the minecraft namespace.
|
public static Predicate<BiomeSelectionContext> all()
public static Predicate<BiomeSelectionContext> builtIn()
public static Predicate<BiomeSelectionContext> vanilla()
public static Predicate<BiomeSelectionContext> foundInOverworld()
This selector will also match modded biomes that have been added to the overworld using OverworldBiomes
.
public static Predicate<BiomeSelectionContext> foundInTheNether()
This selector will also match modded biomes that have been added to the nether using NetherBiomes
.
public static Predicate<BiomeSelectionContext> foundInTheEnd()
@SafeVarargs public static Predicate<BiomeSelectionContext> excludeByKey(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>... keys)
excludeByKey(Collection)
public static Predicate<BiomeSelectionContext> excludeByKey(Collection<net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>> keys)
This is useful for allowing a list of biomes to be defined in the config file, where a certain feature should not spawn.
@SafeVarargs public static Predicate<BiomeSelectionContext> includeByKey(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>... keys)
includeByKey(Collection)
public static Predicate<BiomeSelectionContext> includeByKey(Collection<net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>> keys)
This is useful for allowing a list of biomes to be defined in the config file, where a certain feature should spawn exclusively.
public static Predicate<BiomeSelectionContext> spawnsOneOf(net.minecraft.entity.EntityType<?>... entityTypes)
Matches spawns in all spawn groups
.
public static Predicate<BiomeSelectionContext> spawnsOneOf(Set<net.minecraft.entity.EntityType<?>> entityTypes)
Matches spawns in all spawn groups
.
public static Predicate<BiomeSelectionContext> categories(net.minecraft.world.biome.Biome.Category... categories)
Biome.getCategory()