IWorldGeneratorpublic abstract class BiomeGen extends java.lang.Object implements IWorldGenerator
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.Map<Biome,INoiseGen> |
biomeNoiseGens |
|
protected java.util.Random |
biomeRandom |
|
protected com.google.common.collect.ListMultimap<BiomeLevel,Biome> |
biomesPerLevel |
|
protected long[] |
layerSeeds |
|
protected INoiseGen |
levelHeightNoise |
|
protected java.util.Map<BiomeLevel,java.lang.Integer> |
totalWeights |
| Constructor | Description |
|---|---|
BiomeGen() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
generate(IWorld world,
IChunk chunk) |
|
Biome |
getBiome(IWorld world,
int x,
int y,
int height) |
|
abstract int |
getBiomeBlobSize(IWorld world) |
|
BiomeLevel |
getBiomeLevel(IWorld world,
int x,
int y,
int height) |
|
abstract int |
getBiomeTransition(IWorld world) |
|
abstract java.util.List<BiomeLevel> |
getGenerationLevels(Biome biome,
IWorld world) |
|
abstract int |
getLayerSeedScramble(IWorld world) |
|
abstract int |
getLevelTransition(IWorld world) |
|
abstract int |
getNoiseSeedScramble(IWorld world) |
|
int |
getPriority() |
|
void |
initWorld(IWorld world) |
|
boolean |
shouldGenerate(IWorld world,
IChunk chunk) |
doesPlayerAllowGeneration, generatesPerChunk, generatesRetroactively, needsPlayerToAllowGeneration, shouldExistInWorldprotected final com.google.common.collect.ListMultimap<BiomeLevel,Biome> biomesPerLevel
protected final java.util.Map<BiomeLevel,java.lang.Integer> totalWeights
protected final java.util.Random biomeRandom
protected INoiseGen levelHeightNoise
protected long[] layerSeeds
public abstract int getLevelTransition(IWorld world)
public abstract int getBiomeTransition(IWorld world)
public abstract int getBiomeBlobSize(IWorld world)
public abstract int getLayerSeedScramble(IWorld world)
public abstract int getNoiseSeedScramble(IWorld world)
public abstract java.util.List<BiomeLevel> getGenerationLevels(Biome biome, IWorld world)
public void initWorld(IWorld world)
initWorld in interface IWorldGeneratorpublic void generate(IWorld world, IChunk chunk)
generate in interface IWorldGeneratorpublic boolean shouldGenerate(IWorld world, IChunk chunk)
shouldGenerate in interface IWorldGeneratorpublic int getPriority()
getPriority in interface IWorldGeneratorpublic BiomeLevel getBiomeLevel(IWorld world, int x, int y, int height)