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 pPos, int pSeaLevel)
    • getHeightAdjustedTemperature

      private float getHeightAdjustedTemperature(BlockPos pPos, int pSeaLevel)
    • getTemperature

      @Deprecated private float getTemperature(BlockPos pPos, int pSeaLevel)
      Deprecated.
    • shouldFreeze

      public boolean shouldFreeze(LevelReader pLevel, BlockPos pPos)
    • shouldFreeze

      public boolean shouldFreeze(LevelReader pLevel, BlockPos pWater, boolean pMustBeAtEdge)
    • coldEnoughToSnow

      public boolean coldEnoughToSnow(BlockPos pPos, int pSeaLevel)
    • warmEnoughToRain

      public boolean warmEnoughToRain(BlockPos pPos, int pSeaLevel)
    • shouldMeltFrozenOceanIcebergSlightly

      public boolean shouldMeltFrozenOceanIcebergSlightly(BlockPos pPos, int pSeaLevel)
    • shouldSnow

      public boolean shouldSnow(LevelReader pLevel, BlockPos pPos)
    • getGenerationSettings

      public BiomeGenerationSettings getGenerationSettings()
    • getGrassColor

      public int getGrassColor(double pPosX, double pPosZ)
    • 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.