Package forestry.api.apiculture
Interface IBeeModifier
public interface IBeeModifier
A bee modifier allows modifying certain conditions in a bee hive.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanisSealed()default booleandefault booleandefault floatmodifyAging(IGenome genome, IGenome mate, float currentAging) Used to speed up or slow down the aging of a queen.default floatmodifyGeneticDecay(IGenome genome, float currentDecay) default floatmodifyMutationChance(IGenome genome, IGenome mate, IMutation<IBeeSpecies> mutation, float currentChance) Used to modify the chance for mutations to happen.default floatmodifyPollination(IGenome genome, float currentPollination) default floatmodifyProductionSpeed(IGenome genome, float currentSpeed) Used to increase or decrease the chances of producing products and specialties.default net.minecraft.core.Vec3imodifyTerritory(IGenome genome, net.minecraft.core.Vec3i currentModifier) Used to modify the territory of a bee, which is the area in which bees can find flowers, affect mobs with their IBeeEffect, and pollinate tree leaves.
-
Method Details
-
modifyTerritory
default net.minecraft.core.Vec3i modifyTerritory(IGenome genome, net.minecraft.core.Vec3i currentModifier) Used to modify the territory of a bee, which is the area in which bees can find flowers, affect mobs with their IBeeEffect, and pollinate tree leaves.- Parameters:
genome- Genome of the bee this modifier is called for.currentModifier- Current modifier. Starts out as the value of the allele- Returns:
- Float used to modify the base territory.
-
modifyMutationChance
default float modifyMutationChance(IGenome genome, IGenome mate, IMutation<IBeeSpecies> mutation, float currentChance) Used to modify the chance for mutations to happen.- Parameters:
genome- Genome of the bee this modifier is called for.mate- Genome of the bee mate this modifier is called for.mutation- The mutation that might occur.currentChance- The current mutation chance. Starts at the base chance of the mutation but may have already been modified by other IBeeModifiers.- Returns:
- Float used to modify the base mutation chance.
-
modifyAging
Used to speed up or slow down the aging of a queen.- Parameters:
genome- Genome of the bee this modifier is called for.mate- Genome of the mate,nullif there this bee is not mated.currentAging- Current amount to age the bee by. Starts at1but may have already been modified by other IBeeModifiers.- Returns:
- The number of age steps to age. This number will be rounded if it is not whole. Default is 1.
-
modifyProductionSpeed
Used to increase or decrease the chances of producing products and specialties.- Parameters:
genome- Genome of the bee this modifier is called for.currentSpeed- Current production speed. Starts at the value of the bee's activeBeeChromosomes.SPEEDallele.- Returns:
- Float modifying the production speed of queens.
-
modifyPollination
- Parameters:
genome- Genome of the bee this modifier is called for.currentPollination- Current pollination. Starts out at the value of the bee's activeBeeChromosomes.POLLINATIONallele.- Returns:
- Float modifying the flowering of queens.
-
modifyGeneticDecay
- Parameters:
genome- Genome of the bee this modifier is called for.currentDecay- Current decay. Starts out at1fbut may already have been modified by other modifiers.- Returns:
- Float modifying the chance for a swarmer queen to die off.
-
isSealed
default boolean isSealed()- Returns:
- Whether bees in this housing can fly in the rain without
BeeChromosomes.TOLERATES_RAIN.
-
isSelfLighted
default boolean isSelfLighted()- Returns:
- Whether bees in the hive can work during the night without
BeeChromosomes.NEVER_SLEEPSorIBeeSpecies.isNocturnal().
-
isSunlightSimulated
default boolean isSunlightSimulated()- Returns:
- Whether bees in the hive can work when the sky is obstructed without
BeeChromosomes.CAVE_DWELLING.
-
isHellish
default boolean isHellish()- Returns:
- Whether this hive simulates a
hellishclimate even if not in the Nether.
-