public class BiomeProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.List<Biome> |
allowedBiomes |
Modifier | Constructor and Description |
---|---|
protected |
BiomeProvider() |
|
BiomeProvider(WorldInfo info) |
Modifier and Type | Method and Description |
---|---|
boolean |
areBiomesViable(int x,
int z,
int radius,
java.util.List<Biome> allowed)
checks given Chunk's Biomes against List of allowed ones
|
void |
cleanupCache()
Calls the WorldChunkManager's biomeCache.cleanupCache()
|
BlockPos |
findBiomePosition(int x,
int z,
int range,
java.util.List<Biome> biomes,
java.util.Random random) |
Biome |
getBiome(BlockPos pos)
Returns the biome generator
|
Biome |
getBiome(BlockPos pos,
Biome defaultBiome) |
Biome[] |
getBiomes(Biome[] oldBiomeList,
int x,
int z,
int width,
int depth)
Gets biomes to use for the blocks and loads the other data like temperature and humidity onto the
WorldChunkManager.
|
Biome[] |
getBiomes(Biome[] listToReuse,
int x,
int z,
int width,
int length,
boolean cacheFlag)
Gets a list of biomes for the specified blocks.
|
Biome[] |
getBiomesForGeneration(Biome[] biomes,
int x,
int z,
int width,
int height)
Returns an array of biomes for the location input.
|
java.util.List<Biome> |
getBiomesToSpawnIn()
Gets the list of valid biomes for the player to spawn in.
|
Biome |
getFixedBiome() |
GenLayer[] |
getModdedBiomeGenerators(WorldType worldType,
long seed,
GenLayer[] original) |
float |
getTemperatureAtHeight(float p_76939_1_,
int p_76939_2_)
Return an adjusted version of a given temperature based on the y height
|
boolean |
isFixedBiome() |
public static java.util.List<Biome> allowedBiomes
protected BiomeProvider()
public BiomeProvider(WorldInfo info)
public java.util.List<Biome> getBiomesToSpawnIn()
public float getTemperatureAtHeight(float p_76939_1_, int p_76939_2_)
public Biome[] getBiomesForGeneration(Biome[] biomes, int x, int z, int width, int height)
public Biome[] getBiomes(Biome[] oldBiomeList, int x, int z, int width, int depth)
public Biome[] getBiomes(Biome[] listToReuse, int x, int z, int width, int length, boolean cacheFlag)
public boolean areBiomesViable(int x, int z, int radius, java.util.List<Biome> allowed)
public BlockPos findBiomePosition(int x, int z, int range, java.util.List<Biome> biomes, java.util.Random random)
public void cleanupCache()
public GenLayer[] getModdedBiomeGenerators(WorldType worldType, long seed, GenLayer[] original)
public boolean isFixedBiome()
public Biome getFixedBiome()