Allow overriding climate when checking for mutations (#1373)

* Allow overriding climate when checking for mutations
This commit is contained in:
bdew authored and James Mitchell committed 2016-08-02 14:22:05 -07:00
1 parent e0676030d6
commit 89cfbfca9c
19 files changed
+102 -25

No files matched your search

@@ -5,6 +5,7 @@
******************************************************************************/
package forestry.api.genetics;
import forestry.api.core.IClimateProvider;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
@@ -15,7 +16,7 @@ public interface IMutationCondition {
* Most will return 1 if the condition is met and 0 otherwise,
* but the float offers flexibility for more advanced conditions.
*/
float getChance(World world, BlockPos pos, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1);
float getChance(World world, BlockPos pos, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1, IClimateProvider climate);
/**
* A localized description of the mutation condition. (i.e. "A temperature of HOT is required.")