Class OverworldBiomes

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

@Deprecated
public final class OverworldBiomes
extends Object
Deprecated.
API that exposes some internals of the minecraft default biome source for the overworld.

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

  • Method Summary

    Modifier and Type Method Description
    static void addBiomeVariant​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> replaced, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> variant, double chance, OverworldClimate... climates)
    Deprecated.
    Adds a 'variant' biome which replaces another biome on occasion.
    static void addContinentalBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> biome, OverworldClimate climate, double weight)
    Deprecated.
    Adds the biome to the specified climate group, with the specified weight.
    static void addEdgeBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> edge, double weight)
    Deprecated.
    Adds the biome as an an edge biome (excluding as a beach) of the parent biome, with the specified weight.
    static void addHillsBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> hills, double weight)
    Deprecated.
    Adds the biome as a hills variant of the parent biome, with the specified weight.
    static void addShoreBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> shore, double weight)
    Deprecated.
    Adds the biome as a shore/beach biome for the parent biome, with the specified weight.
    static void setRiverBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> river)
    Deprecated.
    Sets the river type that will generate in the biome.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • addContinentalBiome

      public static void addContinentalBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> biome, OverworldClimate climate, double weight)
      Deprecated.
      Adds the biome to the specified climate group, with the specified weight. This is only for the biomes that make up the initial continents in generation.
      Parameters:
      biome - the biome to be added
      climate - the climate group whereto the biome is added
      weight - the weight of the entry. The weight in this method corresponds to its selection likelihood, with heavier biomes being more likely to be selected and lighter biomes being selected with less likelihood.
      See Also:
      for a list of vanilla biome weights
    • addHillsBiome

      public static void addHillsBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> hills, double weight)
      Deprecated.
      Adds the biome as a hills variant of the parent biome, with the specified weight.
      Parameters:
      parent - the biome to where the hills variant is added
      hills - the biome to be set as a hills variant
      weight - the weight of the entry. The weight in this method corresponds to its selection likelihood, with heavier biomes being more likely to be selected and lighter biomes being selected with less likelihood. Mods should use 1.0 as the default/normal weight.
    • addShoreBiome

      public static void addShoreBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> shore, double weight)
      Deprecated.
      Adds the biome as a shore/beach biome for the parent biome, with the specified weight.
      Parameters:
      parent - the base biome to where the shore biome is added
      shore - the biome to be added as a shore biome
      weight - the weight of the entry. The weight in this method corresponds to its selection likelihood, with heavier biomes being more likely to be selected and lighter biomes being selected with less likelihood. Mods should use 1.0 as the default/normal weight.
    • addEdgeBiome

      public static void addEdgeBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> edge, double weight)
      Deprecated.
      Adds the biome as an an edge biome (excluding as a beach) of the parent biome, with the specified weight.
      Parameters:
      parent - the base biome to where the edge biome is added
      edge - the biome to be added as an edge biome
      weight - the weight of the entry. The weight in this method corresponds to its selection likelihood, with heavier biomes being more likely to be selected and lighter biomes being selected with less likelihood. Mods should use 1.0 as the default/normal weight.
    • addBiomeVariant

      public static void addBiomeVariant​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> replaced, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> variant, double chance, OverworldClimate... climates)
      Deprecated.
      Adds a 'variant' biome which replaces another biome on occasion.

      For example, addBiomeVariant(Biomes.JUNGLE, Biomes.DESERT, 0.2) will replace 20% of jungles with deserts. This method is rather useful for replacing biomes not generated through standard methods, such as oceans, deep oceans, jungles, mushroom islands, etc. When replacing ocean and deep ocean biomes, one must specify the biome without temperature (Biomes.OCEAN / Biomes.DEEP_OCEAN) only, as ocean temperatures have not been assigned; additionally, one must not specify climates for oceans, deep oceans, or mushroom islands, as they do not have any climate assigned at this point in the generation.

      Parameters:
      replaced - the base biome that is replaced by a variant
      variant - the biome to be added as a variant
      chance - the chance of replacement of the biome into the variant
      climates - the climates in which the variants will occur in (none listed = add variant to all climates)
    • setRiverBiome

      public static void setRiverBiome​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> parent, net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> river)
      Deprecated.
      Sets the river type that will generate in the biome. If null is passed as the river biome, then rivers will not generate in this biome.
      Parameters:
      parent - the base biome in which the river biome is to be set
      river - the river biome for this biome