public abstract class BiomeGenBase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BiomeGenBase.FlowerEntry
Weighted random holder class used to hold possible flowers
that can spawn in this biome when bonemeal is used on grass.
|
static class |
BiomeGenBase.Height |
static class |
BiomeGenBase.SpawnListEntry |
static class |
BiomeGenBase.TempCategory |
Constructor and Description |
---|
BiomeGenBase(int id) |
BiomeGenBase(int id,
boolean register) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultFlowers()
Adds the default flowers, as of 1.7, it is 2 yellow, and 1 red.
|
void |
addFlower(IBlockState state,
int weight)
Register a new plant to be planted when bonemeal is used on grass.
|
boolean |
canSpawnLightningBolt()
Return true if the biome supports lightning bolt spawn, either by have the bolts enabled and have rain enabled.
|
BiomeDecorator |
createBiomeDecorator()
Allocate a new BiomeDecorator for this BiomeGenBase
|
BiomeGenBase |
createMutatedBiome(int p_180277_1_) |
BiomeGenBase |
createMutation()
Creates a mutated version of the biome and places it into the biomeList with an index equal to the original plus
128
|
void |
decorate(World worldIn,
java.util.Random rand,
BlockPos pos) |
BiomeGenBase |
func_150557_a(int p_150557_1_,
boolean p_150557_2_) |
BiomeGenBase |
func_150563_c(int p_150563_1_) |
WorldGenAbstractTree |
genBigTreeChance(java.util.Random rand) |
void |
generateBiomeTerrain(World worldIn,
java.util.Random rand,
ChunkPrimer chunkPrimerIn,
int p_180628_4_,
int p_180628_5_,
double p_180628_6_) |
void |
genTerrainBlocks(World worldIn,
java.util.Random rand,
ChunkPrimer chunkPrimerIn,
int p_180622_4_,
int p_180622_5_,
double p_180622_6_) |
static BiomeGenBase |
getBiome(int id)
return the biome specified by biomeID, or 0 (ocean) if out of bounds
|
java.lang.Class<? extends BiomeGenBase> |
getBiomeClass() |
static BiomeGenBase |
getBiomeFromBiomeList(int biomeId,
BiomeGenBase biome) |
static BiomeGenBase[] |
getBiomeGenArray() |
boolean |
getEnableSnow()
Returns true if the biome have snowfall instead a normal rain.
|
float |
getFloatRainfall()
Gets a floating point representation of this biome's rainfall
|
float |
getFloatTemperature(BlockPos pos)
Gets a floating point representation of this biome's temperature
|
int |
getFoliageColorAtPos(BlockPos pos) |
int |
getGrassColorAtPos(BlockPos pos) |
int |
getIntRainfall()
Gets an integer representation of this biome's rainfall
|
BiomeDecorator |
getModdedBiomeDecorator(BiomeDecorator original) |
int |
getModdedBiomeFoliageColor(int original) |
int |
getModdedBiomeGrassColor(int original) |
WorldGenerator |
getRandomWorldGenForGrass(java.util.Random rand)
Gets a WorldGen appropriate for this biome.
|
int |
getSkyColorByTemp(float p_76731_1_)
takes temperature, returns color
|
java.util.List<BiomeGenBase.SpawnListEntry> |
getSpawnableList(EnumCreatureType creatureType) |
float |
getSpawningChance()
returns the chance a creature has to spawn.
|
BiomeGenBase.TempCategory |
getTempCategory() |
int |
getWaterColorMultiplier() |
boolean |
isEqualTo(BiomeGenBase biome)
returns true if the biome specified is equal to this biome
|
boolean |
isHighHumidity()
Checks to see if the rainfall level of the biome is extremely high
|
boolean |
isSnowyBiome() |
BlockFlower.EnumFlowerType |
pickRandomFlower(java.util.Random rand,
BlockPos pos) |
void |
plantFlower(World world,
java.util.Random rand,
BlockPos pos) |
BiomeGenBase |
setBiomeName(java.lang.String name) |
BiomeGenBase |
setColor(int colorIn) |
BiomeGenBase |
setDisableRain()
Disable the rain for the biome.
|
BiomeGenBase |
setEnableSnow()
sets enableSnow to true during biome initialization. returns BiomeGenBase.
|
BiomeGenBase |
setFillerBlockMetadata(int meta) |
BiomeGenBase |
setHeight(BiomeGenBase.Height heights) |
BiomeGenBase |
setTemperatureRainfall(float temperatureIn,
float rainfallIn)
Sets the temperature and rainfall of this biome.
|
protected static final BiomeGenBase.Height height_Default
protected static final BiomeGenBase.Height height_ShallowWaters
protected static final BiomeGenBase.Height height_Oceans
protected static final BiomeGenBase.Height height_DeepOceans
protected static final BiomeGenBase.Height height_LowPlains
protected static final BiomeGenBase.Height height_MidPlains
protected static final BiomeGenBase.Height height_LowHills
protected static final BiomeGenBase.Height height_HighPlateaus
protected static final BiomeGenBase.Height height_MidHills
protected static final BiomeGenBase.Height height_Shores
protected static final BiomeGenBase.Height height_RockyWaters
protected static final BiomeGenBase.Height height_LowIslands
protected static final BiomeGenBase.Height height_PartiallySubmerged
public static final java.util.Set<BiomeGenBase> explorationBiomesList
public static final java.util.Map<java.lang.String,BiomeGenBase> BIOME_ID_MAP
public static final BiomeGenBase ocean
public static final BiomeGenBase plains
public static final BiomeGenBase desert
public static final BiomeGenBase extremeHills
public static final BiomeGenBase forest
public static final BiomeGenBase taiga
public static final BiomeGenBase swampland
public static final BiomeGenBase river
public static final BiomeGenBase hell
public static final BiomeGenBase sky
public static final BiomeGenBase frozenOcean
public static final BiomeGenBase frozenRiver
public static final BiomeGenBase icePlains
public static final BiomeGenBase iceMountains
public static final BiomeGenBase mushroomIsland
public static final BiomeGenBase mushroomIslandShore
public static final BiomeGenBase beach
public static final BiomeGenBase desertHills
public static final BiomeGenBase forestHills
public static final BiomeGenBase taigaHills
public static final BiomeGenBase extremeHillsEdge
public static final BiomeGenBase jungle
public static final BiomeGenBase jungleHills
public static final BiomeGenBase jungleEdge
public static final BiomeGenBase deepOcean
public static final BiomeGenBase stoneBeach
public static final BiomeGenBase coldBeach
public static final BiomeGenBase birchForest
public static final BiomeGenBase birchForestHills
public static final BiomeGenBase roofedForest
public static final BiomeGenBase coldTaiga
public static final BiomeGenBase coldTaigaHills
public static final BiomeGenBase megaTaiga
public static final BiomeGenBase megaTaigaHills
public static final BiomeGenBase extremeHillsPlus
public static final BiomeGenBase savanna
public static final BiomeGenBase savannaPlateau
public static final BiomeGenBase mesa
public static final BiomeGenBase mesaPlateau_F
public static final BiomeGenBase mesaPlateau
public static final BiomeGenBase field_180279_ad
protected static final NoiseGeneratorPerlin temperatureNoise
protected static final NoiseGeneratorPerlin GRASS_COLOR_NOISE
protected static final WorldGenDoublePlant DOUBLE_PLANT_GENERATOR
public java.lang.String biomeName
public int color
public int field_150609_ah
public IBlockState topBlock
public IBlockState fillerBlock
public int fillerBlockMetadata
public float minHeight
public float maxHeight
public float temperature
public float rainfall
public int waterColorMultiplier
public BiomeDecorator theBiomeDecorator
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableMonsterList
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableCreatureList
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableWaterCreatureList
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableCaveCreatureList
protected boolean enableSnow
protected boolean enableRain
public final int biomeID
protected WorldGenTrees worldGeneratorTrees
protected WorldGenBigTree worldGeneratorBigTree
protected WorldGenSwamp worldGeneratorSwamp
protected java.util.List<BiomeGenBase.FlowerEntry> flowers
public BiomeGenBase(int id)
public BiomeGenBase(int id, boolean register)
public BiomeDecorator createBiomeDecorator()
public BiomeGenBase setTemperatureRainfall(float temperatureIn, float rainfallIn)
public final BiomeGenBase setHeight(BiomeGenBase.Height heights)
public BiomeGenBase setDisableRain()
public WorldGenAbstractTree genBigTreeChance(java.util.Random rand)
public WorldGenerator getRandomWorldGenForGrass(java.util.Random rand)
public BlockFlower.EnumFlowerType pickRandomFlower(java.util.Random rand, BlockPos pos)
public BiomeGenBase setEnableSnow()
public BiomeGenBase setBiomeName(java.lang.String name)
public BiomeGenBase setFillerBlockMetadata(int meta)
public BiomeGenBase setColor(int colorIn)
public BiomeGenBase func_150563_c(int p_150563_1_)
public BiomeGenBase func_150557_a(int p_150557_1_, boolean p_150557_2_)
public int getSkyColorByTemp(float p_76731_1_)
public java.util.List<BiomeGenBase.SpawnListEntry> getSpawnableList(EnumCreatureType creatureType)
public boolean getEnableSnow()
public boolean canSpawnLightningBolt()
public boolean isHighHumidity()
public float getSpawningChance()
public final int getIntRainfall()
public final float getFloatRainfall()
public final float getFloatTemperature(BlockPos pos)
public int getGrassColorAtPos(BlockPos pos)
public int getFoliageColorAtPos(BlockPos pos)
public boolean isSnowyBiome()
public void genTerrainBlocks(World worldIn, java.util.Random rand, ChunkPrimer chunkPrimerIn, int p_180622_4_, int p_180622_5_, double p_180622_6_)
public final void generateBiomeTerrain(World worldIn, java.util.Random rand, ChunkPrimer chunkPrimerIn, int p_180628_4_, int p_180628_5_, double p_180628_6_)
public BiomeGenBase createMutation()
public BiomeGenBase createMutatedBiome(int p_180277_1_)
public java.lang.Class<? extends BiomeGenBase> getBiomeClass()
public boolean isEqualTo(BiomeGenBase biome)
public BiomeGenBase.TempCategory getTempCategory()
public static BiomeGenBase[] getBiomeGenArray()
public static BiomeGenBase getBiome(int id)
public static BiomeGenBase getBiomeFromBiomeList(int biomeId, BiomeGenBase biome)
public BiomeDecorator getModdedBiomeDecorator(BiomeDecorator original)
public int getWaterColorMultiplier()
public int getModdedBiomeGrassColor(int original)
public int getModdedBiomeFoliageColor(int original)
public void addDefaultFlowers()
public void addFlower(IBlockState state, int weight)
state
- The block to place.weight
- The weight of the plant, where red flowers are
10 and yellow flowers are 20.