Interface IClimateManager


public interface IClimateManager
Used to keep track of climate information. In a future version of Forestry, this will also be used to account for climate modifiers. Get an instance from IForestryApi.getClimateManager().
  • Method Details

    • getTemperature

      TemperatureType getTemperature(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)
      Returns:
      The temperature of the given biome.
    • getTemperature

      TemperatureType getTemperature(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome)
      Returns:
      The temperature of the given biome.
    • getHumidity

      HumidityType getHumidity(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> holder)
      Returns:
      The humidity of the given biome.
    • getHumidity

      HumidityType getHumidity(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> holder)
      Returns:
      The humidity of the given biome.
    • getState

      ClimateState getState(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos)
      Returns:
      The climate state at the given location with modifications applied. TODO implement IClimateModifier
    • getBiomeState

      ClimateState getBiomeState(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos)
      Returns:
      The unmodified climate of the biome at the given position.
    • getDefaultClimate

      @Deprecated default IClimateProvider getDefaultClimate(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos)
      Returns:
      Create a climate provider.
    • createDummyClimateProvider

      IClimateProvider createDummyClimateProvider()
      Returns:
      A climate provider that always returns NORMAL / NORMAL.
    • createClimateProvider

      IClimateProvider createClimateProvider(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos)