Class Biome

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

public final class Biome extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getMobSettings

      public MobSpawnSettings getMobSettings()
    • 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.