Package net.fabricmc.fabric.api.biome.v1
Class BiomeSelectors
java.lang.Object
net.fabricmc.fabric.api.biome.v1.BiomeSelectors
Deprecated.
Provides several convenient biome selectors that can be used with
BiomeModifications
.
Experimental feature, may be removed or changed without further notice.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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>
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>
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>
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(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>
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>
vanilla()
Deprecated.Returns a biome selector that will match all biomes from the minecraft namespace.
-
Method Details
-
all
Deprecated.Matches all Biomes. Use a more specific selector if possible. -
builtIn
Deprecated.Matches Biomes that have not been originally defined in a datapack, but that are defined in code. -
vanilla
Deprecated.Returns a biome selector that will match all biomes from the minecraft namespace. -
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.This selector will also match modded biomes that have been added to the overworld using
OverworldBiomes
. -
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.This selector will also match modded biomes that have been added to the nether using
NetherBiomes
. -
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. -
excludeByKey
@SafeVarargs public static Predicate<BiomeSelectionContext> excludeByKey(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>... keys)Deprecated.- See Also:
excludeByKey(Collection)
-
excludeByKey
public 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.This is useful for allowing a list of biomes to be defined in the config file, where a certain feature should not spawn.
-
includeByKey
@SafeVarargs public static Predicate<BiomeSelectionContext> includeByKey(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>... keys)Deprecated.- See Also:
includeByKey(Collection)
-
includeByKey
public 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.This is useful for allowing a list of biomes to be defined in the config file, where a certain feature should spawn exclusively.
-
spawnsOneOf
public 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.Matches spawns in all
spawn groups
. -
spawnsOneOf
public 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.Matches spawns in all
spawn groups
. -
categories
public static Predicate<BiomeSelectionContext> categories(net.minecraft.world.biome.Biome.Category... categories)Deprecated.Matches Biomes that have one of the given categories.- See Also:
Biome.getCategory()
-