Climate Bindings

Bindings for interacting with TFC’s climate model system

declare class CilmateBindings {

    // These can be accessed via TFC.climate.*

    getModel(level: Level): ClimateModel
    getCurrentTemperature(level: Level, pos: BlockPos): number
    getAverageTemperature(level: Level, pos: BlockPos): number
    getCurrentRainfall(level: Level, pos: BlockPos): number
    getAverageRainfall(level: Level, pos: BlockPos): number
    getRainfallVariance(level: Level, pos: BlockPos): number
    getCurrentGroundwater(level: Level, pos: BlockPos): number
    getAverageGroundwater(level: Level, pos: BlockPos): number
    getCurrentWind(level: Level, pos: BlockPos): Vec2
    getFogginess(level: Level, pos: BlockPos): number
}
  • : Gets the ClimateModel of the level
  • : Gets the current temperature at the level and position
  • : Gets the average temperature at the level and position
  • : Gets the current rainfall at the level and position
  • : Gets the average rainfall at the level and position
  • : Gets the rainfall variance at the level and position
  • : Gets the current groundwater at the level and position
  • : Gets the average groundwater at the level and position
  • : Gets the current wind vector at the level and position
  • : Gets the current fogginess at the level and position