类 Biome
java.lang.Object
net.minecraft.world.level.biome.Biome
-
嵌套类概要
嵌套类修饰符和类型类说明static class
static final record
static enum
static enum
-
字段概要
字段修饰符和类型字段说明static final PerlinSimplexNoise
已过时, 待删除: 此 API 元素将从以后的版本中删除。private final Biome.ClimateSettings
已过时。static final com.mojang.serialization.Codec
<Biome> (专用程序包) static final PerlinSimplexNoise
private final BiomeGenerationSettings
private final MobSpawnSettings
已过时。Redirected togetModifiedSpecialEffects()
by field_to_method.jsprivate final ModifiableBiomeInfo
static final com.mojang.serialization.Codec
<Biome> private final BiomeSpecialEffects
private static final int
private static final PerlinSimplexNoise
private final ThreadLocal
<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> -
构造器概要
构造器构造器说明Biome
(Biome.ClimateSettings p_220530_, BiomeSpecialEffects p_220531_, BiomeGenerationSettings p_220532_, MobSpawnSettings p_220533_) -
方法概要
修饰符和类型方法说明boolean
coldEnoughToSnow
(BlockPos p_198905_, int p_362496_) float
float
int
int
private int
int
getGrassColor
(double p_47465_, double p_47466_) private int
private float
getHeightAdjustedTemperature
(BlockPos p_47529_, int p_368747_) 返回 The biome's climate settings, with modifications if called after modifiers are applied in server init.。返回 The biome's client effects, with modifications if called after modifiers are applied in server init.。getPrecipitationAt
(BlockPos p_265163_, int p_366614_) int
private float
getTemperature
(BlockPos p_47506_, int p_365043_) 已过时。int
int
boolean
返回 Cache of original biome data and biome data modified by biome modifiers。boolean
shouldFreeze
(LevelReader p_47478_, BlockPos p_47479_) boolean
shouldFreeze
(LevelReader p_47481_, BlockPos p_47482_, boolean p_47483_) boolean
shouldMeltFrozenOceanIcebergSlightly
(BlockPos p_198909_, int p_365025_) boolean
shouldSnow
(LevelReader p_47520_, BlockPos p_47521_) boolean
warmEnoughToRain
(BlockPos p_198907_, int p_362136_)
-
字段详细资料
-
DIRECT_CODEC
-
NETWORK_CODEC
-
CODEC
-
LIST_CODEC
-
TEMPERATURE_NOISE
-
FROZEN_TEMPERATURE_NOISE
-
BIOME_INFO_NOISE
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
TEMPERATURE_CACHE_SIZE
private static final int TEMPERATURE_CACHE_SIZE- 另请参阅:
-
climateSettings
已过时。Redirected togetModifiedClimateSettings()
by field_to_method.js -
generationSettings
-
mobSettings
已过时。Redirected togetModifiedSpecialEffects()
by field_to_method.js -
specialEffects
-
temperatureCache
-
modifiableBiomeInfo
-
-
构造器详细资料
-
Biome
Biome(Biome.ClimateSettings p_220530_, BiomeSpecialEffects p_220531_, BiomeGenerationSettings p_220532_, MobSpawnSettings p_220533_)
-
-
方法详细资料
-
getSkyColor
public int getSkyColor() -
getMobSettings
-
hasPrecipitation
public boolean hasPrecipitation() -
getPrecipitationAt
-
getHeightAdjustedTemperature
-
getTemperature
已过时。 -
shouldFreeze
-
shouldFreeze
-
coldEnoughToSnow
-
warmEnoughToRain
-
shouldMeltFrozenOceanIcebergSlightly
-
shouldSnow
-
getGenerationSettings
-
getFogColor
public int getFogColor() -
getGrassColor
public int getGrassColor(double p_47465_, double p_47466_) -
getGrassColorFromTexture
private int getGrassColorFromTexture() -
getFoliageColor
public int getFoliageColor() -
getFoliageColorFromTexture
private int getFoliageColorFromTexture() -
getBaseTemperature
public float getBaseTemperature() -
getSpecialEffects
-
getWaterColor
public int getWaterColor() -
getWaterFogColor
public int getWaterFogColor() -
getAmbientParticle
-
getAmbientLoop
-
getAmbientMood
-
getAmbientAdditions
-
getBackgroundMusic
-
getBackgroundMusicVolume
public float getBackgroundMusicVolume() -
modifiableBiomeInfo
返回 Cache of original biome data and biome data modified by biome modifiers。 Modified biome data is set by server after datapacks and serverconfigs load. Climate and effects field reads are coremodded to redirect to this.- 返回:
- Cache of original biome data and biome data modified by biome modifiers
-
getModifiedClimateSettings
返回 The biome's climate settings, with modifications if called after modifiers are applied in server init.。 Note: This method is called by our field_to_method coremod. Which redirectsclimateSettings
to this method at load time.- 返回:
- The biome's climate settings, with modifications if called after modifiers are applied in server init.
-
getModifiedSpecialEffects
返回 The biome's client effects, with modifications if called after modifiers are applied in server init.。 Note: This methods is called by our field_to_method coremod. Which redirectsspecialEffects
to this method at load time.- 返回:
- The biome's client effects, with modifications if called after modifiers are applied in server init.
-
getModifiedClimateSettings()
by field_to_method.js