mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-15 09:34:57 +00:00
Move ForestryAPI into the Forestry project instead of as a submodule Include the new RF API Remove code for mods that have not yet ported to 1.8.9 (add it back later) Bump version to 5.0.0
71 lines
2.2 KiB
Java
71 lines
2.2 KiB
Java
/*******************************************************************************
|
|
* Copyright 2011-2014 SirSengir
|
|
*
|
|
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
|
******************************************************************************/
|
|
package forestry.api.apiculture;
|
|
|
|
public interface IBeeModifier {
|
|
/**
|
|
* @param genome Genome of the bee this modifier is called for.
|
|
* @param currentModifier Current modifier.
|
|
* @return Float used to modify the base territory.
|
|
*/
|
|
float getTerritoryModifier(IBeeGenome genome, float currentModifier);
|
|
|
|
/**
|
|
* @param genome Genome of the bee this modifier is called for.
|
|
* @param mate Genome of the bee mate this modifier is called for.
|
|
* @param currentModifier Current modifier.
|
|
* @return Float used to modify the base mutation chance.
|
|
*/
|
|
float getMutationModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier);
|
|
|
|
/**
|
|
* @param genome Genome of the bee this modifier is called for.
|
|
* @param currentModifier Current modifier.
|
|
* @return Float used to modify the life span of queens.
|
|
*/
|
|
float getLifespanModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier);
|
|
|
|
/**
|
|
* @param genome Genome of the bee this modifier is called for.
|
|
* @param currentModifier Current modifier.
|
|
* @return Float modifying the production speed of queens.
|
|
*/
|
|
float getProductionModifier(IBeeGenome genome, float currentModifier);
|
|
|
|
/**
|
|
* @param genome Genome of the bee this modifier is called for.
|
|
* @return Float modifying the flowering of queens.
|
|
*/
|
|
float getFloweringModifier(IBeeGenome genome, float currentModifier);
|
|
|
|
/**
|
|
* @param genome Genome of the bee this modifier is called for.
|
|
* @return Float modifying the chance for a swarmer queen to die off.
|
|
*/
|
|
float getGeneticDecay(IBeeGenome genome, float currentModifier);
|
|
|
|
/**
|
|
* @return Boolean indicating if housing can ignore rain
|
|
*/
|
|
boolean isSealed();
|
|
|
|
/**
|
|
* @return Boolean indicating if housing can ignore darkness/night
|
|
*/
|
|
boolean isSelfLighted();
|
|
|
|
/**
|
|
* @return Boolean indicating if housing can ignore not seeing the sky
|
|
*/
|
|
boolean isSunlightSimulated();
|
|
|
|
/**
|
|
* @return Boolean indicating whether this housing simulates the nether
|
|
*/
|
|
boolean isHellish();
|
|
|
|
}
|