Package forestry.api.apiculture
Interface IBeekeepingMode
public interface IBeekeepingMode
-
Method Summary
Modifier and TypeMethodDescriptionintgetFinalFertility(IBee queen, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) getName()floatbooleanisDegenerating(IBee queen, IBee offspring, IBeeHousing housing) booleanisFatigued(IBee queen, IBeeHousing housing) booleanisOffspringPristine(IBee queen) booleanmayMultiplyPrincess(IBee queen)
-
Method Details
-
getName
String getName()- Returns:
- Localized name of this beekeeping mode.
-
getDescription
- Returns:
- Localized list of strings outlining the behaviour of this beekeeping mode.
-
getWearModifier
float getWearModifier()- Returns:
- Float used to modify the wear on comb frames.
-
getFinalFertility
int getFinalFertility(IBee queen, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) - Returns:
- fertility taking into account the birthing queen and surroundings.
-
isFatigued
- Returns:
- true if the queen is genetically "fatigued" and should not be reproduced anymore.
-
isDegenerating
- Returns:
- true if the genetic structure of the queen is breaking down during spawning of the offspring (with chance). will trigger a negative effect.
-
isOffspringPristine
- Returns:
trueif an offspring of this queen is considered pristine
-
mayMultiplyPrincess
- Returns:
- true if this mode allows the passed queen or princess to be multiplied
-
getBeeModifier
IBeeModifier getBeeModifier()- Returns:
- the bee modifier for this mode
-