public abstract class Biome extends ForgeRegistryEntry<Biome>
Modifier and Type | Class and Description |
---|---|
static class |
Biome.Builder |
static class |
Biome.Category |
static class |
Biome.FlowerEntry |
static class |
Biome.RainType |
static class |
Biome.SpawnListEntry |
static class |
Biome.TempCategory |
Modifier and Type | Field and Description |
---|---|
static java.util.Set<Biome> |
BIOMES |
protected java.util.Map<GenerationStage.Carving,java.util.List<ConfiguredCarver<?>>> |
carvers |
protected Biome.Category |
category |
protected float |
depth |
protected float |
downfall |
protected java.util.Map<GenerationStage.Decoration,java.util.List<ConfiguredFeature<?,?>>> |
features |
private java.lang.ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> |
field_225488_v |
protected java.util.List<ConfiguredFeature<?,?>> |
flowers |
static PerlinNoiseGenerator |
INFO_NOISE |
static org.apache.logging.log4j.Logger |
LOGGER |
static ObjectIntIdentityMap<Biome> |
MUTATION_TO_BASE_ID_MAP |
protected java.lang.String |
parent |
protected Biome.RainType |
precipitation |
protected float |
scale |
private int |
skyColor |
private java.util.Map<EntityClassification,java.util.List<Biome.SpawnListEntry>> |
spawns |
protected java.util.Map<Structure<?>,IFeatureConfig> |
structures |
protected ConfiguredSurfaceBuilder<?> |
surfaceBuilder |
protected float |
temperature |
protected static PerlinNoiseGenerator |
TEMPERATURE_NOISE |
protected java.lang.String |
translationKey |
protected int |
waterColor |
protected int |
waterFogColor |
delegate
Modifier | Constructor and Description |
---|---|
protected |
Biome(Biome.Builder biomeBuilder) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public static final org.apache.logging.log4j.Logger LOGGER
public static final java.util.Set<Biome> BIOMES
public static final ObjectIntIdentityMap<Biome> MUTATION_TO_BASE_ID_MAP
protected static final PerlinNoiseGenerator TEMPERATURE_NOISE
public static final PerlinNoiseGenerator INFO_NOISE
@Nullable protected java.lang.String translationKey
protected final float depth
protected final float scale
protected final float temperature
protected final float downfall
protected final int waterColor
protected final int waterFogColor
private final int skyColor
@Nullable protected final java.lang.String parent
protected final ConfiguredSurfaceBuilder<?> surfaceBuilder
protected final Biome.Category category
protected final Biome.RainType precipitation
protected final java.util.Map<GenerationStage.Carving,java.util.List<ConfiguredCarver<?>>> carvers
protected final java.util.Map<GenerationStage.Decoration,java.util.List<ConfiguredFeature<?,?>>> features
protected final java.util.List<ConfiguredFeature<?,?>> flowers
protected final java.util.Map<Structure<?>,IFeatureConfig> structures
private final java.util.Map<EntityClassification,java.util.List<Biome.SpawnListEntry>> spawns
private final java.lang.ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> field_225488_v
protected Biome(Biome.Builder biomeBuilder)
public static <C extends ICarverConfig> ConfiguredCarver<C> createCarver(WorldCarver<C> carver, C config)
public boolean isMutation()
private int calculateSkyColor()
public int getSkyColor()
protected void addSpawn(EntityClassification type, Biome.SpawnListEntry spawnListEntry)
public java.util.List<Biome.SpawnListEntry> getSpawns(EntityClassification creatureType)
public Biome.RainType getPrecipitation()
public boolean isHighHumidity()
public float getSpawningChance()
public float getTemperatureRaw(BlockPos pos)
public final float getTemperature(BlockPos pos)
public boolean doesWaterFreeze(IWorldReader worldIn, BlockPos pos)
public boolean doesWaterFreeze(IWorldReader worldIn, BlockPos water, boolean mustBeAtEdge)
public boolean doesSnowGenerate(IWorldReader worldIn, BlockPos pos)
public void addFeature(GenerationStage.Decoration decorationStage, ConfiguredFeature<?,?> featureIn)
public <C extends ICarverConfig> void addCarver(GenerationStage.Carving stage, ConfiguredCarver<C> carver)
public java.util.List<ConfiguredCarver<?>> getCarvers(GenerationStage.Carving stage)
public <C extends IFeatureConfig> void addStructure(ConfiguredFeature<C,? extends Structure<C>> structureIn)
public <C extends IFeatureConfig> boolean hasStructure(Structure<C> structureIn)
@Nullable public <C extends IFeatureConfig> C getStructureConfig(Structure<C> structureIn)
public java.util.List<ConfiguredFeature<?,?>> getFlowers()
public java.util.List<ConfiguredFeature<?,?>> getFeatures(GenerationStage.Decoration decorationStage)
public void decorate(GenerationStage.Decoration stage, ChunkGenerator<? extends GenerationSettings> chunkGenerator, IWorld worldIn, long seed, SharedSeedRandom random, BlockPos pos)
public int getGrassColor(double posX, double posZ)
public int getFoliageColor()
public void buildSurface(java.util.Random random, IChunk chunkIn, int x, int z, int startHeight, double noise, BlockState defaultBlock, BlockState defaultFluid, int seaLevel, long seed)
public Biome.TempCategory getTempCategory()
public final float getDepth()
public final float getDownfall()
public ITextComponent getDisplayName()
public java.lang.String getTranslationKey()
public final float getScale()
public final float getDefaultTemperature()
public final int getWaterColor()
public final int getWaterFogColor()
public final Biome.Category getCategory()
public ConfiguredSurfaceBuilder<?> getSurfaceBuilder()
public ISurfaceBuilderConfig getSurfaceBuilderConfig()
@Nullable public java.lang.String getParent()
public Biome getRiver()
@Nullable public Biome getHill(INoiseRandom rand)