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>>
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() |
BiomeDecorator |
createBiomeDecorator() |
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) |
void |
genTerrainBlocks(World worldIn,
java.util.Random rand,
ChunkPrimer chunkPrimerIn,
int x,
int z,
double noiseVal) |
float |
getBaseHeight() |
static Biome |
getBiome(int id) |
static Biome |
getBiome(int biomeId,
Biome fallback) |
java.lang.Class<? extends Biome> |
getBiomeClass() |
static Biome |
getBiomeForId(int id) |
java.lang.String |
getBiomeName() |
boolean |
getEnableSnow() |
float |
getFloatTemperature(BlockPos pos) |
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() |
WorldGenerator |
getRandomWorldGenForGrass(java.util.Random rand) |
int |
getSkyColorByTemp(float currentTemperature) |
java.util.List<Biome.SpawnListEntry> |
getSpawnableList(EnumCreatureType creatureType) |
float |
getSpawningChance() |
Biome.TempCategory |
getTempCategory() |
float |
getTemperature() |
int |
getWaterColor() |
int |
getWaterColorMultiplier() |
boolean |
ignorePlayerSpawnSuitability() |
boolean |
isHighHumidity() |
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) |
static void |
registerBiomes() |
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)
@Nullable 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()
@Nullable 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)