类 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
Neo: Field accesses are redirected togetModifiedClimateSettings()
with a coremod.static final com.mojang.serialization.Codec
<Biome> (专用程序包) static final PerlinSimplexNoise
private final BiomeGenerationSettings
private final MobSpawnSettings
private final ModifiableBiomeInfo
static final com.mojang.serialization.Codec
<Biome> private final BiomeSpecialEffects
Neo: Field accesses are redirected togetModifiedSpecialEffects()
with a coremod.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_361315_) float
private int
float
int
private int
int
int
private int
int
getGrassColor
(double p_47465_, double p_47466_) private int
private float
getHeightAdjustedTemperature
(BlockPos p_47529_, int p_363138_) 返回 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_361844_) int
private float
getTemperature
(BlockPos p_47506_, int p_365137_) 已过时。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_360933_) boolean
shouldSnow
(LevelReader p_47520_, BlockPos p_47521_) boolean
warmEnoughToRain
(BlockPos p_198907_, int p_362250_)
-
字段详细资料
-
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
Neo: Field accesses are redirected togetModifiedClimateSettings()
with a coremod. -
generationSettings
-
mobSettings
-
specialEffects
Neo: Field accesses are redirected togetModifiedSpecialEffects()
with a coremod. -
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_) -
getBaseGrassColor
private int getBaseGrassColor() -
getGrassColorFromTexture
private int getGrassColorFromTexture() -
getFoliageColor
public int getFoliageColor() -
getFoliageColorFromTexture
private int getFoliageColorFromTexture() -
getDryFoliageColor
public int getDryFoliageColor() -
getDryFoliageColorFromTexture
private int getDryFoliageColorFromTexture() -
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.。- 返回:
- 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.。- 返回:
- The biome's client effects, with modifications if called after modifiers are applied in server init.
-