Interface IWaterConsumption

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IWaterConsumption
Used to determine the water consumption of a Forestry farm.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    get(IFarmHousing housing, float hydrationModifier)
    Determines water consumption based on the farm's housing state and climate.
  • Method Details

    • get

      int get(IFarmHousing housing, float hydrationModifier)
      Determines water consumption based on the farm's housing state and climate.
      Parameters:
      housing - The farm housing.
      hydrationModifier - A product of the farm's temperature, humidity, and rainfall.
      Returns:
      The water consumption.