@Deprecated public final class OverworldBiomes extends Object
Experimental feature, may be removed or changed without further notice.
Modifier and Type | Method and 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.
|
public static void addContinentalBiome(net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> biome, OverworldClimate climate, double weight)
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.for a list of vanilla biome weights
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)
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.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)
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.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)
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.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)
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.
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)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)
parent
- the base biome in which the river biome is to be setriver
- the river biome for this biome