Package net.minecraft.world.biome
Class BiomeGenBase
- java.lang.Object
-
- net.minecraft.world.biome.BiomeGenBase
-
- Direct Known Subclasses:
BiomeGenBeach,BiomeGenDesert,BiomeGenEnd,BiomeGenForest,BiomeGenHell,BiomeGenHills,BiomeGenJungle,BiomeGenMesa,BiomeGenMushroomIsland,BiomeGenMutated,BiomeGenOcean,BiomeGenPlains,BiomeGenRiver,BiomeGenSavanna,BiomeGenSnow,BiomeGenStoneBeach,BiomeGenSwamp,BiomeGenTaiga
public abstract class BiomeGenBase extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBiomeGenBase.Heightstatic classBiomeGenBase.SpawnListEntrystatic classBiomeGenBase.TempCategory
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedBiomeGenBase(int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbootstrap()booleancanSpawnLightningBolt()+ Return true if the biome supports lightning bolt spawn, either by have the bolts enabled and have rain enabled.protected BiomeGenBasecreateMutatedBiome(int parInt1)protected BiomeGenBasecreateMutation()+ Creates a mutated version of the biome and places it into the biomeList with an index equal to the original plus 128protected BiomeGenBasefunc_150557_a(int parInt1, boolean parFlag)protected BiomeGenBasefunc_150563_c(int parInt1)voidgenerateBiomeTerrain(World worldIn, EaglercraftRandom rand, ChunkPrimer chunkPrimerIn, int parInt1, int parInt2, double parDouble1)voidgenTerrainBlocks(World worldIn, EaglercraftRandom rand, ChunkPrimer chunkPrimerIn, int parInt1, int parInt2, double parDouble1)static BiomeGenBasegetBiome(int id)+ return the biome specified by biomeID, or 0 (ocean) if out of boundsjava.lang.Class<? extends BiomeGenBase>getBiomeClass()static BiomeGenBasegetBiomeFromBiomeList(int biomeId, BiomeGenBase biome)static BiomeGenBase[]getBiomeGenArray()booleangetEnableSnow()+ Returns true if the biome have snowfall instead a normal rain.floatgetFloatRainfall()+ Gets a floating point representation of this biome's rainfallfloatgetFloatTemperature(BlockPos pos)+ Gets a floating point representation of this biome's temperatureintgetFoliageColorAtPos(BlockPos pos)intgetGrassColorAtPos(BlockPos pos)intgetIntRainfall()+ Gets an integer representation of this biome's rainfallintgetSkyColorByTemp(float parFloat1)+ takes temperature, returns colorjava.util.List<BiomeGenBase.SpawnListEntry>getSpawnableList(EnumCreatureType creatureType)+ Returns the correspondent list of the EnumCreatureType informed.floatgetSpawningChance()+ returns the chance a creature has to spawn.BiomeGenBase.TempCategorygetTempCategory()booleanisEqualTo(BiomeGenBase biome)+ returns true if the biome specified is equal to this biomebooleanisHighHumidity()+ Checks to see if the rainfall level of the biome is extremely highbooleanisSnowyBiome()BlockFlower.EnumFlowerTypepickRandomFlower(EaglercraftRandom rand, BlockPos pos)protected BiomeGenBasesetBiomeName(java.lang.String name)protected BiomeGenBasesetColor(int colorIn)protected BiomeGenBasesetDisableRain()+ Disable the rain for the biome.protected BiomeGenBasesetEnableSnow()+ sets enableSnow to true during biome initialization.protected BiomeGenBasesetFillerBlockMetadata(int meta)protected BiomeGenBasesetHeight(BiomeGenBase.Height heights)protected BiomeGenBasesetTemperatureRainfall(float temperatureIn, float rainfallIn)+ Sets the temperature and rainfall of this biome.
-
-
-
Field Detail
-
height_Default
protected static final BiomeGenBase.Height height_Default
-
height_ShallowWaters
protected static final BiomeGenBase.Height height_ShallowWaters
-
height_Oceans
protected static final BiomeGenBase.Height height_Oceans
-
height_DeepOceans
protected static final BiomeGenBase.Height height_DeepOceans
-
height_LowPlains
protected static final BiomeGenBase.Height height_LowPlains
-
height_MidPlains
protected static final BiomeGenBase.Height height_MidPlains
-
height_LowHills
protected static final BiomeGenBase.Height height_LowHills
-
height_HighPlateaus
protected static final BiomeGenBase.Height height_HighPlateaus
-
height_MidHills
protected static final BiomeGenBase.Height height_MidHills
-
height_Shores
protected static final BiomeGenBase.Height height_Shores
-
height_RockyWaters
protected static final BiomeGenBase.Height height_RockyWaters
-
height_LowIslands
protected static final BiomeGenBase.Height height_LowIslands
-
height_PartiallySubmerged
protected static final BiomeGenBase.Height height_PartiallySubmerged
-
explorationBiomesList
public static final java.util.Set<BiomeGenBase> explorationBiomesList
-
BIOME_ID_MAP
public static final java.util.Map<java.lang.String,BiomeGenBase> BIOME_ID_MAP
-
ocean
public static BiomeGenBase ocean
-
plains
public static BiomeGenBase plains
-
desert
public static BiomeGenBase desert
-
extremeHills
public static BiomeGenBase extremeHills
-
forest
public static BiomeGenBase forest
-
taiga
public static BiomeGenBase taiga
-
swampland
public static BiomeGenBase swampland
-
river
public static BiomeGenBase river
-
hell
public static BiomeGenBase hell
-
sky
public static BiomeGenBase sky
-
frozenOcean
public static BiomeGenBase frozenOcean
-
frozenRiver
public static BiomeGenBase frozenRiver
-
icePlains
public static BiomeGenBase icePlains
-
iceMountains
public static BiomeGenBase iceMountains
-
mushroomIsland
public static BiomeGenBase mushroomIsland
-
mushroomIslandShore
public static BiomeGenBase mushroomIslandShore
-
beach
public static BiomeGenBase beach
-
desertHills
public static BiomeGenBase desertHills
-
forestHills
public static BiomeGenBase forestHills
-
taigaHills
public static BiomeGenBase taigaHills
-
extremeHillsEdge
public static BiomeGenBase extremeHillsEdge
-
jungle
public static BiomeGenBase jungle
-
jungleHills
public static BiomeGenBase jungleHills
-
jungleEdge
public static BiomeGenBase jungleEdge
-
deepOcean
public static BiomeGenBase deepOcean
-
stoneBeach
public static BiomeGenBase stoneBeach
-
coldBeach
public static BiomeGenBase coldBeach
-
birchForest
public static BiomeGenBase birchForest
-
birchForestHills
public static BiomeGenBase birchForestHills
-
roofedForest
public static BiomeGenBase roofedForest
-
coldTaiga
public static BiomeGenBase coldTaiga
-
coldTaigaHills
public static BiomeGenBase coldTaigaHills
-
megaTaiga
public static BiomeGenBase megaTaiga
-
megaTaigaHills
public static BiomeGenBase megaTaigaHills
-
extremeHillsPlus
public static BiomeGenBase extremeHillsPlus
-
savanna
public static BiomeGenBase savanna
-
savannaPlateau
public static BiomeGenBase savannaPlateau
-
mesa
public static BiomeGenBase mesa
-
mesaPlateau_F
public static BiomeGenBase mesaPlateau_F
-
mesaPlateau
public static BiomeGenBase mesaPlateau
-
field_180279_ad
public static BiomeGenBase field_180279_ad
-
temperatureNoise
protected static final NoiseGeneratorPerlin temperatureNoise
-
GRASS_COLOR_NOISE
protected static final NoiseGeneratorPerlin GRASS_COLOR_NOISE
-
biomeName
public java.lang.String biomeName
-
color
public int color
-
field_150609_ah
public int field_150609_ah
-
topBlock
public IBlockState topBlock
+ The block expected to be on the top of this biome
-
fillerBlock
public IBlockState fillerBlock
+ The block to fill spots in when not on the top
-
fillerBlockMetadata
public int fillerBlockMetadata
-
minHeight
public float minHeight
-
maxHeight
public float maxHeight
-
temperature
public float temperature
-
rainfall
public float rainfall
-
waterColorMultiplier
public int waterColorMultiplier
-
spawnableMonsterList
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableMonsterList
-
spawnableCreatureList
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableCreatureList
-
spawnableWaterCreatureList
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableWaterCreatureList
-
spawnableCaveCreatureList
protected java.util.List<BiomeGenBase.SpawnListEntry> spawnableCaveCreatureList
-
enableSnow
protected boolean enableSnow
-
enableRain
protected boolean enableRain
-
biomeID
public final int biomeID
-
-
Method Detail
-
setTemperatureRainfall
protected BiomeGenBase setTemperatureRainfall(float temperatureIn, float rainfallIn)
+ Sets the temperature and rainfall of this biome.
-
setHeight
protected final BiomeGenBase setHeight(BiomeGenBase.Height heights)
-
setDisableRain
protected BiomeGenBase setDisableRain()
+ Disable the rain for the biome.
-
pickRandomFlower
public BlockFlower.EnumFlowerType pickRandomFlower(EaglercraftRandom rand, BlockPos pos)
-
setEnableSnow
protected BiomeGenBase setEnableSnow()
+ sets enableSnow to true during biome initialization. returns BiomeGenBase.
-
setBiomeName
protected BiomeGenBase setBiomeName(java.lang.String name)
-
setFillerBlockMetadata
protected BiomeGenBase setFillerBlockMetadata(int meta)
-
setColor
protected BiomeGenBase setColor(int colorIn)
-
func_150563_c
protected BiomeGenBase func_150563_c(int parInt1)
-
func_150557_a
protected BiomeGenBase func_150557_a(int parInt1, boolean parFlag)
-
getSkyColorByTemp
public int getSkyColorByTemp(float parFloat1)
+ takes temperature, returns color
-
getSpawnableList
public java.util.List<BiomeGenBase.SpawnListEntry> getSpawnableList(EnumCreatureType creatureType)
+ Returns the correspondent list of the EnumCreatureType informed.
-
getEnableSnow
public boolean getEnableSnow()
+ Returns true if the biome have snowfall instead a normal rain.
-
canSpawnLightningBolt
public boolean canSpawnLightningBolt()
+ Return true if the biome supports lightning bolt spawn, either by have the bolts enabled and have rain enabled.
-
isHighHumidity
public boolean isHighHumidity()
+ Checks to see if the rainfall level of the biome is extremely high
-
getSpawningChance
public float getSpawningChance()
+ returns the chance a creature has to spawn.
-
getIntRainfall
public final int getIntRainfall()
+ Gets an integer representation of this biome's rainfall
-
getFloatRainfall
public final float getFloatRainfall()
+ Gets a floating point representation of this biome's rainfall
-
getFloatTemperature
public final float getFloatTemperature(BlockPos pos)
+ Gets a floating point representation of this biome's temperature
-
getGrassColorAtPos
public int getGrassColorAtPos(BlockPos pos)
-
getFoliageColorAtPos
public int getFoliageColorAtPos(BlockPos pos)
-
isSnowyBiome
public boolean isSnowyBiome()
-
genTerrainBlocks
public void genTerrainBlocks(World worldIn, EaglercraftRandom rand, ChunkPrimer chunkPrimerIn, int parInt1, int parInt2, double parDouble1)
-
generateBiomeTerrain
public final void generateBiomeTerrain(World worldIn, EaglercraftRandom rand, ChunkPrimer chunkPrimerIn, int parInt1, int parInt2, double parDouble1)
-
createMutation
protected BiomeGenBase createMutation()
+ Creates a mutated version of the biome and places it into the biomeList with an index equal to the original plus 128
-
createMutatedBiome
protected BiomeGenBase createMutatedBiome(int parInt1)
-
getBiomeClass
public java.lang.Class<? extends BiomeGenBase> getBiomeClass()
-
isEqualTo
public boolean isEqualTo(BiomeGenBase biome)
+ returns true if the biome specified is equal to this biome
-
getTempCategory
public BiomeGenBase.TempCategory getTempCategory()
-
getBiomeGenArray
public static BiomeGenBase[] getBiomeGenArray()
-
getBiome
public static BiomeGenBase getBiome(int id)
+ return the biome specified by biomeID, or 0 (ocean) if out of bounds
-
getBiomeFromBiomeList
public static BiomeGenBase getBiomeFromBiomeList(int biomeId, BiomeGenBase biome)
-
bootstrap
public static void bootstrap()
-
-