public abstract class BiomeGen extends java.lang.Object implements IWorldGenerator
IWorldGenerator.IFactory| Modifier and Type | Field and 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 ResourceName |
name |
protected java.util.Map<BiomeLevel,java.lang.Integer> |
totalWeights |
| Constructor and Description |
|---|
BiomeGen(ResourceName name) |
| Modifier and Type | Method and 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 java.util.Set<Biome> |
getBiomesToGen(IWorld world) |
abstract int |
getBiomeTransition(IWorld world) |
abstract int |
getLayerSeedScramble(IWorld world) |
abstract java.util.Set<BiomeLevel> |
getLevelsToGen(IWorld world) |
abstract int |
getLevelTransition(IWorld world) |
abstract int |
getNoiseSeedScramble(IWorld world) |
int |
getPriority() |
void |
initWorld(IWorld world) |
boolean |
shouldGenerate(IWorld world,
IChunk chunk) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoesPlayerAllowGeneration, generatesPerChunk, generatesRetroactively, needsPlayerToAllowGeneration, shouldExistInWorldprotected ResourceName name
protected 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 BiomeGen(ResourceName name)
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.Set<BiomeLevel> getLevelsToGen(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)