mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
4711be8028
commit
94aa9346b1
1282 files changed
+15755
-16296
No files matched your search
@@ -1,27 +1,25 @@
|
||||
package forestry.api.genetics;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import java.util.Collection;
|
||||
|
||||
public interface IClimateHelper {
|
||||
|
||||
/**
|
||||
* Determines whether the given temperature and humidity are within the given constraints.
|
||||
*
|
||||
* @param temperature The temperature to test.
|
||||
* @param humidity The humidity to test.
|
||||
* @param baseTemp Base temperature for the test.
|
||||
* @param tolTemp Temperature tolerance to apply.
|
||||
* @param baseHumid Base humidity for the test.
|
||||
* @param tolHumid Humidity tolerance to apply.
|
||||
* @param humidity The humidity to test.
|
||||
* @param baseTemp Base temperature for the test.
|
||||
* @param tolTemp Temperature tolerance to apply.
|
||||
* @param baseHumid Base humidity for the test.
|
||||
* @param tolHumid Humidity tolerance to apply.
|
||||
* @return true if both temperature and humidity fit the given constraints.
|
||||
*/
|
||||
boolean isWithinLimits(
|
||||
EnumTemperature temperature,
|
||||
EnumHumidity humidity,
|
||||
EnumTemperature baseTemp,
|
||||
EnumTolerance tolTemp,
|
||||
EnumHumidity baseHumid,
|
||||
EnumTolerance tolHumid);
|
||||
boolean isWithinLimits(EnumTemperature temperature, EnumHumidity humidity, EnumTemperature baseTemp,
|
||||
EnumTolerance tolTemp, EnumHumidity baseHumid, EnumTolerance tolHumid);
|
||||
|
||||
boolean isWithinLimits(EnumTemperature temperature, EnumTemperature baseTemp, EnumTolerance tolTemp);
|
||||
|
||||
@@ -29,14 +27,17 @@ public interface IClimateHelper {
|
||||
|
||||
/**
|
||||
* Gets a collection of humidities which fit the given parameters.
|
||||
* @param prefered Base humidity from which to measure.
|
||||
*
|
||||
* @param prefered Base humidity from which to measure.
|
||||
* @param tolerance Tolerance to apply to the base humidity.
|
||||
* @return A collection of humidities which fall within the given parameters.
|
||||
*/
|
||||
Collection<EnumHumidity> getToleratedHumidity(EnumHumidity prefered, EnumTolerance tolerance);
|
||||
|
||||
/**
|
||||
* Gets a collection of temperatures which fit the given parameters.
|
||||
* @param prefered Base temperature from which to measure.
|
||||
*
|
||||
* @param prefered Base temperature from which to measure.
|
||||
* @param tolerance Tolerance to apply to the base temperatures.
|
||||
* @return A collection of temperatures which fall within the given parameters.
|
||||
*/
|
||||
@@ -44,12 +45,15 @@ public interface IClimateHelper {
|
||||
|
||||
/**
|
||||
* Gets a localized, human readable string for the given temperature.
|
||||
*
|
||||
* @param temperature Temperature to generate the string for.
|
||||
* @return A localized, human readable string for the given temperature.
|
||||
*/
|
||||
String toDisplay(EnumTemperature temperature);
|
||||
|
||||
/**
|
||||
* Gets a localized, human readable string for the given humidity.
|
||||
*
|
||||
* @param humidity Humidity to generate the string for.
|
||||
* @return A localized, human readable string for the given humidity.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user