类 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
private 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 pPos) float
int
int
private int
int
getGrassColor
(double pPosX, double pPosZ) private int
private float
返回 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 pPos) int
private float
getTemperature
(BlockPos pPos) 已过时。int
int
boolean
返回 Cache of original biome data and biome data modified by biome modifiers。boolean
shouldFreeze
(LevelReader pLevel, BlockPos pPos) boolean
shouldFreeze
(LevelReader pLevel, BlockPos pWater, boolean pMustBeAtEdge) boolean
boolean
shouldSnow
(LevelReader pLevel, BlockPos pPos) boolean
warmEnoughToRain
(BlockPos pPos)
-
字段详细资料
-
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
-
generationSettings
-
mobSettings
-
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 pPosX, double pPosZ) -
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
-
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.
-