Package net.minecraft.world.biome
Class Biome
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<V>
-
- net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<Biome>
-
- net.minecraft.world.biome.Biome
-
- All Implemented Interfaces:
IForgeRegistryEntry<Biome>
public final class Biome extends ForgeRegistryEntry.UncheckedRegistryEntry<Biome>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Biome.Attributes
static class
Biome.Builder
static class
Biome.Category
static class
Biome.Climate
static class
Biome.RainType
static class
Biome.TemperatureModifier
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description static PerlinNoiseGenerator
BIOME_INFO_NOISE
private Biome.Category
biomeCategory
private Biome.Climate
climateSettings
static com.mojang.serialization.Codec<java.util.function.Supplier<Biome>>
CODEC
private float
depth
static com.mojang.serialization.Codec<Biome>
DIRECT_CODEC
private static PerlinNoiseGenerator
FROZEN_TEMPERATURE_NOISE
private BiomeGenerationSettings
generationSettings
static com.mojang.serialization.Codec<java.util.List<java.util.function.Supplier<Biome>>>
LIST_CODEC
static org.apache.logging.log4j.Logger
LOGGER
private MobSpawnInfo
mobSettings
static com.mojang.serialization.Codec<Biome>
NETWORK_CODEC
private float
scale
private BiomeAmbience
specialEffects
private java.util.Map<java.lang.Integer,java.util.List<Structure<?>>>
structuresByStep
private static PerlinNoiseGenerator
TEMPERATURE_NOISE
private java.lang.ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap>
temperatureCache
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Biome(Biome.Climate p_i241927_1_, Biome.Category p_i241927_2_, float p_i241927_3_, float p_i241927_4_, BiomeAmbience p_i241927_5_, BiomeGenerationSettings p_i241927_6_, MobSpawnInfo p_i241927_7_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildSurfaceAt(java.util.Random p_206854_1_, IChunk p_206854_2_, int p_206854_3_, int p_206854_4_, int p_206854_5_, double p_206854_6_, BlockState p_206854_8_, BlockState p_206854_9_, int p_206854_10_, long p_206854_11_)
void
generate(StructureManager p_242427_1_, ChunkGenerator p_242427_2_, WorldGenRegion p_242427_3_, long p_242427_4_, SharedSeedRandom p_242427_6_, BlockPos p_242427_7_)
java.util.Optional<SoundAdditionsAmbience>
getAmbientAdditions()
java.util.Optional<SoundEvent>
getAmbientLoop()
java.util.Optional<MoodSoundAmbience>
getAmbientMood()
java.util.Optional<ParticleEffectAmbience>
getAmbientParticle()
java.util.Optional<BackgroundMusicSelector>
getBackgroundMusic()
float
getBaseTemperature()
Biome.Category
getBiomeCategory()
float
getDepth()
float
getDownfall()
int
getFogColor()
int
getFoliageColor()
private int
getFoliageColorFromTexture()
BiomeGenerationSettings
getGenerationSettings()
int
getGrassColor(double p_225528_1_, double p_225528_3_)
private int
getGrassColorFromTexture()
private float
getHeightAdjustedTemperature(BlockPos p_242437_1_)
MobSpawnInfo
getMobSettings()
Biome.RainType
getPrecipitation()
float
getScale()
int
getSkyColor()
BiomeAmbience
getSpecialEffects()
float
getTemperature(BlockPos p_225486_1_)
int
getWaterColor()
int
getWaterFogColor()
boolean
isHumid()
boolean
shouldFreeze(IWorldReader p_201848_1_, BlockPos p_201848_2_)
boolean
shouldFreeze(IWorldReader p_201854_1_, BlockPos p_201854_2_, boolean p_201854_3_)
boolean
shouldSnow(IWorldReader p_201850_1_, BlockPos p_201850_2_)
java.lang.String
toString()
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Field Detail
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER
-
DIRECT_CODEC
public static final com.mojang.serialization.Codec<Biome> DIRECT_CODEC
-
NETWORK_CODEC
public static final com.mojang.serialization.Codec<Biome> NETWORK_CODEC
-
CODEC
public static final com.mojang.serialization.Codec<java.util.function.Supplier<Biome>> CODEC
-
LIST_CODEC
public static final com.mojang.serialization.Codec<java.util.List<java.util.function.Supplier<Biome>>> LIST_CODEC
-
structuresByStep
private final java.util.Map<java.lang.Integer,java.util.List<Structure<?>>> structuresByStep
-
TEMPERATURE_NOISE
private static final PerlinNoiseGenerator TEMPERATURE_NOISE
-
FROZEN_TEMPERATURE_NOISE
private static final PerlinNoiseGenerator FROZEN_TEMPERATURE_NOISE
-
BIOME_INFO_NOISE
public static final PerlinNoiseGenerator BIOME_INFO_NOISE
-
climateSettings
private final Biome.Climate climateSettings
-
generationSettings
private final BiomeGenerationSettings generationSettings
-
mobSettings
private final MobSpawnInfo mobSettings
-
depth
private final float depth
-
scale
private final float scale
-
biomeCategory
private final Biome.Category biomeCategory
-
specialEffects
private final BiomeAmbience specialEffects
-
temperatureCache
private final java.lang.ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> temperatureCache
-
-
Constructor Detail
-
Biome
private Biome(Biome.Climate p_i241927_1_, Biome.Category p_i241927_2_, float p_i241927_3_, float p_i241927_4_, BiomeAmbience p_i241927_5_, BiomeGenerationSettings p_i241927_6_, MobSpawnInfo p_i241927_7_)
-
-
Method Detail
-
getSkyColor
public int getSkyColor()
-
getMobSettings
public MobSpawnInfo getMobSettings()
-
getPrecipitation
public Biome.RainType getPrecipitation()
-
isHumid
public boolean isHumid()
-
getHeightAdjustedTemperature
private float getHeightAdjustedTemperature(BlockPos p_242437_1_)
-
getTemperature
public final float getTemperature(BlockPos p_225486_1_)
-
shouldFreeze
public boolean shouldFreeze(IWorldReader p_201848_1_, BlockPos p_201848_2_)
-
shouldFreeze
public boolean shouldFreeze(IWorldReader p_201854_1_, BlockPos p_201854_2_, boolean p_201854_3_)
-
shouldSnow
public boolean shouldSnow(IWorldReader p_201850_1_, BlockPos p_201850_2_)
-
getGenerationSettings
public BiomeGenerationSettings getGenerationSettings()
-
generate
public void generate(StructureManager p_242427_1_, ChunkGenerator p_242427_2_, WorldGenRegion p_242427_3_, long p_242427_4_, SharedSeedRandom p_242427_6_, BlockPos p_242427_7_)
-
getFogColor
public int getFogColor()
-
getGrassColor
public int getGrassColor(double p_225528_1_, double p_225528_3_)
-
getGrassColorFromTexture
private int getGrassColorFromTexture()
-
getFoliageColor
public int getFoliageColor()
-
getFoliageColorFromTexture
private int getFoliageColorFromTexture()
-
buildSurfaceAt
public void buildSurfaceAt(java.util.Random p_206854_1_, IChunk p_206854_2_, int p_206854_3_, int p_206854_4_, int p_206854_5_, double p_206854_6_, BlockState p_206854_8_, BlockState p_206854_9_, int p_206854_10_, long p_206854_11_)
-
getDepth
public final float getDepth()
-
getDownfall
public final float getDownfall()
-
getScale
public final float getScale()
-
getBaseTemperature
public final float getBaseTemperature()
-
getSpecialEffects
public BiomeAmbience getSpecialEffects()
-
getWaterColor
public final int getWaterColor()
-
getWaterFogColor
public final int getWaterFogColor()
-
getAmbientParticle
public java.util.Optional<ParticleEffectAmbience> getAmbientParticle()
-
getAmbientLoop
public java.util.Optional<SoundEvent> getAmbientLoop()
-
getAmbientMood
public java.util.Optional<MoodSoundAmbience> getAmbientMood()
-
getAmbientAdditions
public java.util.Optional<SoundAdditionsAmbience> getAmbientAdditions()
-
getBackgroundMusic
public java.util.Optional<BackgroundMusicSelector> getBackgroundMusic()
-
getBiomeCategory
public final Biome.Category getBiomeCategory()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-