InternalBiomeUtils

public final class InternalBiomeUtils

Internal utilities used for biome sampling.

Functions

ensureIdMapping
Link copied to clipboard
static void ensureIdMapping(RegistryKey<Biome> biomeKey)
Makes sure that the given registry key is mapped in BuiltinBiomes.
getRawId
Link copied to clipboard
static int getRawId(RegistryKey<Biome> key)
injectBiomesIntoClimate
Link copied to clipboard
static void injectBiomesIntoClimate(LayerRandomnessSource random, Array<int> vanillaArray, OverworldClimate climate, IntConsumer result)
isEdge
Link copied to clipboard
static boolean isEdge(int north, int east, int south, int west, int center)
raw id of the biome to the north
neighborsOcean
Link copied to clipboard
static boolean neighborsOcean(int north, int east, int south, int west)
raw id of the biome to the north
searchForBiome
Link copied to clipboard
static int searchForBiome(double reqWeightSum, int vanillaArrayWeight, List<WeightedBiomeEntry> moddedBiomes)
transformBiome
Link copied to clipboard
static int transformBiome(LayerRandomnessSource random, RegistryKey<Biome> existing, OverworldClimate climate)
Potentially transforms a biome into its variants based on the provided randomness source.

Sources

jvm source
Link copied to clipboard