Package net.fabricmc.fabric.api.biome.v1
Class OverworldBiomes
java.lang.Object
net.fabricmc.fabric.api.biome.v1.OverworldBiomes
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 TypeMethodDescriptionstatic 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.
-
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 addedclimate
- the climate group whereto the biome is addedweight
- 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 addedhills
- the biome to be set as a hills variantweight
- 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 addedshore
- the biome to be added as a shore biomeweight
- 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 addededge
- the biome to be added as an edge biomeweight
- 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 variantvariant
- the biome to be added as a variantchance
- the chance of replacement of the biome into the variantclimates
- 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 setriver
- the river biome for this biome
-