Class BiomeSelectors

java.lang.Object
net.fabricmc.fabric.api.biome.v1.BiomeSelectors

@Deprecated
public final class BiomeSelectors
extends Object
Deprecated.
Provides several convenient biome selectors that can be used with BiomeModifications.

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

  • Method Details

    • all

      public static Predicate<BiomeSelectionContext> all()
      Deprecated.
      Matches all Biomes. Use a more specific selector if possible.
    • builtIn

      public static Predicate<BiomeSelectionContext> builtIn()
      Deprecated.
      Matches Biomes that have not been originally defined in a datapack, but that are defined in code.
    • vanilla

      public static Predicate<BiomeSelectionContext> vanilla()
      Deprecated.
      Returns a biome selector that will match all biomes from the minecraft namespace.
    • foundInOverworld

      public 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.

      This selector will also match modded biomes that have been added to the overworld using OverworldBiomes.

    • foundInTheNether

      public 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.

      This selector will also match modded biomes that have been added to the nether using NetherBiomes.

    • foundInTheEnd

      public 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.
    • 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()