mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 19:29:17 +00:00
Clean up bee nocturnal and rain tolerance
This commit is contained in:
1 parent
6e3c28e07e
commit
92b1f85d84
14 files changed
+32
-37
No files matched your search
@@ -54,7 +54,7 @@ public enum EnumBeeChromosome implements IChromosomeType {
|
||||
/**
|
||||
* If true the bee can work during rain.
|
||||
*/
|
||||
TOLERANT_FLYER(IAlleleBoolean.class),
|
||||
TOLERATES_RAIN(IAlleleBoolean.class),
|
||||
/**
|
||||
* If true, the bee can work without a clear view of the sky.
|
||||
*/
|
||||
|
||||
@@ -33,9 +33,9 @@ public interface IBeeGenome extends IGenome {
|
||||
|
||||
EnumTolerance getToleranceHumid();
|
||||
|
||||
boolean getNocturnal();
|
||||
boolean getNeverSleeps();
|
||||
|
||||
boolean getTolerantFlyer();
|
||||
boolean getToleratesRain();
|
||||
|
||||
boolean getCaveDwelling();
|
||||
|
||||
|
||||
@@ -11,13 +11,6 @@ public class BiomeHelper {
|
||||
|
||||
private static final Map<BiomeGenBase, Boolean> isBiomeHellishCache = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Determines if it can rain or snow in the given biome.
|
||||
*/
|
||||
public static boolean canRainOrSnow(BiomeGenBase biomeGenBase) {
|
||||
return biomeGenBase.getEnableSnow() || biomeGenBase.canRain();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if a given BiomeGenBase is of HELLISH temperature, since it is treated separately from actual temperature values.
|
||||
* Uses the BiomeDictionary.
|
||||
|
||||
Reference in new issue
Block a user