Class Biome

java.lang.Object
net.minecraft.world.level.biome.Biome

public final class Biome extends Object
  • Field Details

    • 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<Holder<Biome>> CODEC
    • LIST_CODEC

      public static final com.mojang.serialization.Codec<HolderSet<Biome>> LIST_CODEC
    • TEMPERATURE_NOISE

      private static final Noise TEMPERATURE_NOISE
    • FROZEN_TEMPERATURE_NOISE

      public static final Noise FROZEN_TEMPERATURE_NOISE
    • BIOME_INFO_NOISE

      @Deprecated(forRemoval=true) public static final Noise BIOME_INFO_NOISE
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TEMPERATURE_CACHE_SIZE

      private static final int TEMPERATURE_CACHE_SIZE
      See Also:
    • climateSettings

      private final Biome.ClimateSettings climateSettings
      Neo: Field accesses are redirected to getModifiedClimateSettings() with a coremod.
    • generationSettings

      private final BiomeGenerationSettings generationSettings
    • attributes

      private final EnvironmentAttributeMap attributes
    • specialEffects

      private final BiomeSpecialEffects specialEffects
      Neo: Field accesses are redirected to getModifiedSpecialEffects() with a coremod.
    • temperatureCache

      private final ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> temperatureCache
    • modifiableBiomeInfo

      private final ModifiableBiomeInfo modifiableBiomeInfo
  • Constructor Details

  • Method Details

    • hasPrecipitation

      public boolean hasPrecipitation()
    • getPrecipitationAt

      public Biome.Precipitation getPrecipitationAt(BlockPos pos, int seaLevel)
    • getHeightAdjustedTemperature

      private float getHeightAdjustedTemperature(BlockPos pos, int seaLevel)
    • getTemperature

      @Deprecated private float getTemperature(BlockPos pos, int seaLevel)
      Deprecated.
    • shouldFreeze

      public boolean shouldFreeze(LevelReader level, BlockPos pos)
    • shouldFreeze

      public boolean shouldFreeze(LevelReader level, BlockPos pos, boolean checkNeighbors)
    • coldEnoughToSnow

      public boolean coldEnoughToSnow(BlockPos pos, int seaLevel)
    • warmEnoughToRain

      public boolean warmEnoughToRain(BlockPos pos, int seaLevel)
    • shouldMeltFrozenOceanIcebergSlightly

      public boolean shouldMeltFrozenOceanIcebergSlightly(BlockPos pos, int seaLevel)
    • shouldSnow

      public boolean shouldSnow(LevelReader level, BlockPos pos)
    • getGenerationSettings

      public BiomeGenerationSettings getGenerationSettings()
    • getGrassColor

      public int getGrassColor(double x, double z)
    • 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()
    • getAttributes

      public EnvironmentAttributeMap getAttributes()
    • getSpecialEffects

      public BiomeSpecialEffects getSpecialEffects()
    • getWaterColor

      public int getWaterColor()
    • modifiableBiomeInfo

      public ModifiableBiomeInfo modifiableBiomeInfo()
      Returns 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.
      Returns:
      Cache of original biome data and biome data modified by biome modifiers
    • getModifiedClimateSettings

      public Biome.ClimateSettings getModifiedClimateSettings()
      Returns The biome's climate settings, with modifications if called after modifiers are applied in server init..
      Returns:
      The biome's climate settings, with modifications if called after modifiers are applied in server init.
    • getModifiedSpecialEffects

      public BiomeSpecialEffects getModifiedSpecialEffects()
      Returns The biome's client effects, with modifications if called after modifiers are applied in server init..
      Returns:
      The biome's client effects, with modifications if called after modifiers are applied in server init.