public abstract class Biome extends IForgeRegistryEntry.Impl<Biome>
Modifier and Type | Class and Description |
---|---|
static class |
Biome.BiomeProperties |
static class |
Biome.FlowerEntry
Weighted random holder class used to hold possible flowers
that can spawn in this biome when bonemeal is used on grass.
|
static class |
Biome.SpawnListEntry |
static class |
Biome.TempCategory |
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
protected static IBlockState |
AIR |
protected static IBlockState |
BEDROCK |
protected static WorldGenBigTree |
BIG_TREE_FEATURE
The big tree generator.
|
protected static WorldGenDoublePlant |
DOUBLE_PLANT_GENERATOR |
static java.util.Set<Biome> |
EXPLORATION_BIOMES_LIST |
IBlockState |
fillerBlock
The block to fill spots in when not on the top
|
protected java.util.List<Biome.FlowerEntry> |
flowers |
protected static NoiseGeneratorPerlin |
GRASS_COLOR_NOISE |
protected static IBlockState |
GRAVEL |
protected static IBlockState |
ICE |
protected java.util.Map<EnumCreatureType,java.util.List<Biome.SpawnListEntry>> |
modSpawnableLists |
static ObjectIntIdentityMap<Biome> |
MUTATION_TO_BASE_ID_MAP |
protected static IBlockState |
RED_SANDSTONE |
static RegistryNamespaced<ResourceLocation,Biome> |
REGISTRY |
protected static IBlockState |
SANDSTONE |
protected java.util.List<Biome.SpawnListEntry> |
spawnableCaveCreatureList |
protected java.util.List<Biome.SpawnListEntry> |
spawnableCreatureList
Holds the classes of any creature that can be spawned in the biome as friendly creature.
|
protected java.util.List<Biome.SpawnListEntry> |
spawnableMonsterList
Holds the classes of IMobs (hostile mobs) that can be spawned in the biome.
|
protected java.util.List<Biome.SpawnListEntry> |
spawnableWaterCreatureList
Holds the classes of any aquatic creature that can be spawned in the water of the biome.
|
protected static IBlockState |
STONE |
protected static WorldGenSwamp |
SWAMP_FEATURE
The swamp tree generator.
|
protected static NoiseGeneratorPerlin |
TEMPERATURE_NOISE |
BiomeDecorator |
theBiomeDecorator
The biome decorator.
|
IBlockState |
topBlock
The block expected to be on the top of this biome
|
protected static WorldGenTrees |
TREE_FEATURE
The tree generator.
|
protected static IBlockState |
WATER |
delegate
Constructor and Description |
---|
Biome(Biome.BiomeProperties properties) |
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 |
canRain()
Check if rain can occur in biome
|
BiomeDecorator |
createBiomeDecorator()
Allocate a new BiomeDecorator for this BiomeGenBase
|
void |
decorate(World worldIn,
java.util.Random rand,
BlockPos pos) |
WorldGenAbstractTree |
genBigTreeChance(java.util.Random rand) |
void |
generateBiomeTerrain(World worldIn,
java.util.Random rand,
ChunkPrimer chunkPrimerIn,
int x,
int z,
double noiseVal)
Given x, z coordinates, we count down all the y positions starting at 255 and working our way down.
|
void |
genTerrainBlocks(World worldIn,
java.util.Random rand,
ChunkPrimer chunkPrimerIn,
int x,
int z,
double noiseVal) |
float |
getBaseHeight() |
static Biome |
getBiome(int id)
return the biome specified by biomeID, or 0 (ocean) if out of bounds
|
static Biome |
getBiome(int biomeId,
Biome fallback) |
java.lang.Class<? extends Biome> |
getBiomeClass() |
static Biome |
getBiomeForId(int id) |
java.lang.String |
getBiomeName() |
boolean |
getEnableSnow()
Returns true if the biome have snowfall instead a normal rain.
|
float |
getFloatTemperature(BlockPos pos)
Gets a floating point representation of this biome's temperature
|
int |
getFoliageColorAtPos(BlockPos pos) |
int |
getGrassColorAtPos(BlockPos pos) |
float |
getHeightVariation() |
static int |
getIdForBiome(Biome biome) |
BiomeDecorator |
getModdedBiomeDecorator(BiomeDecorator original) |
int |
getModdedBiomeFoliageColor(int original) |
int |
getModdedBiomeGrassColor(int original) |
static Biome |
getMutationForBiome(Biome biome) |
float |
getRainfall()
Gets a floating point representation of this biome's rainfall
|
WorldGenerator |
getRandomWorldGenForGrass(java.util.Random rand)
Gets a WorldGen appropriate for this biome.
|
int |
getSkyColorByTemp(float currentTemperature)
takes temperature, returns color
|
java.util.List<Biome.SpawnListEntry> |
getSpawnableList(EnumCreatureType creatureType)
Returns the correspondent list of the EnumCreatureType informed.
|
float |
getSpawningChance()
returns the chance a creature has to spawn.
|
Biome.TempCategory |
getTempCategory() |
float |
getTemperature() |
int |
getWaterColor() |
int |
getWaterColorMultiplier() |
boolean |
ignorePlayerSpawnSuitability() |
boolean |
isHighHumidity()
Checks to see if the rainfall level of the biome is extremely high
|
boolean |
isMutation() |
boolean |
isSnowyBiome() |
BlockFlower.EnumFlowerType |
pickRandomFlower(java.util.Random rand,
BlockPos pos) |
void |
plantFlower(World world,
java.util.Random rand,
BlockPos pos) |
static void |
registerBiome(int id,
java.lang.String name,
Biome biome)
Registers a new biome into the registry.
|
static void |
registerBiomes()
Registers all of the vanilla biomes.
|
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected static final IBlockState STONE
protected static final IBlockState AIR
protected static final IBlockState BEDROCK
protected static final IBlockState GRAVEL
protected static final IBlockState RED_SANDSTONE
protected static final IBlockState SANDSTONE
protected static final IBlockState ICE
protected static final IBlockState WATER
public static final java.util.Set<Biome> EXPLORATION_BIOMES_LIST
public static final ObjectIntIdentityMap<Biome> MUTATION_TO_BASE_ID_MAP
protected static final NoiseGeneratorPerlin TEMPERATURE_NOISE
protected static final NoiseGeneratorPerlin GRASS_COLOR_NOISE
protected static final WorldGenDoublePlant DOUBLE_PLANT_GENERATOR
protected static final WorldGenTrees TREE_FEATURE
protected static final WorldGenBigTree BIG_TREE_FEATURE
protected static final WorldGenSwamp SWAMP_FEATURE
public static final RegistryNamespaced<ResourceLocation,Biome> REGISTRY
public IBlockState topBlock
public IBlockState fillerBlock
public BiomeDecorator theBiomeDecorator
protected java.util.List<Biome.SpawnListEntry> spawnableMonsterList
protected java.util.List<Biome.SpawnListEntry> spawnableCreatureList
protected java.util.List<Biome.SpawnListEntry> spawnableWaterCreatureList
protected java.util.List<Biome.SpawnListEntry> spawnableCaveCreatureList
protected java.util.Map<EnumCreatureType,java.util.List<Biome.SpawnListEntry>> modSpawnableLists
protected java.util.List<Biome.FlowerEntry> flowers
public Biome(Biome.BiomeProperties properties)
public static int getIdForBiome(Biome biome)
public static Biome getBiomeForId(int id)
public BiomeDecorator createBiomeDecorator()
public boolean isMutation()
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 int getSkyColorByTemp(float currentTemperature)
public java.util.List<Biome.SpawnListEntry> getSpawnableList(EnumCreatureType creatureType)
public boolean getEnableSnow()
public boolean canRain()
public boolean isHighHumidity()
public float getSpawningChance()
public final float getFloatTemperature(BlockPos pos)
public void genTerrainBlocks(World worldIn, java.util.Random rand, ChunkPrimer chunkPrimerIn, int x, int z, double noiseVal)
public int getGrassColorAtPos(BlockPos pos)
public final void generateBiomeTerrain(World worldIn, java.util.Random rand, ChunkPrimer chunkPrimerIn, int x, int z, double noiseVal)
public int getFoliageColorAtPos(BlockPos pos)
public java.lang.Class<? extends Biome> getBiomeClass()
public Biome.TempCategory getTempCategory()
public static Biome getBiome(int id)
public boolean ignorePlayerSpawnSuitability()
public final float getBaseHeight()
public final float getRainfall()
public final java.lang.String getBiomeName()
public final float getHeightVariation()
public final float getTemperature()
public final int getWaterColor()
public final boolean isSnowyBiome()
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.public static void registerBiomes()
public static void registerBiome(int id, java.lang.String name, Biome biome)